You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Youngho Cho <yo...@nannet.co.kr> on 2001/06/13 11:36:04 UTC

Question for using Anakia

Hi,

I would like to use Anakia for translating XML to HTML.
The XML doc. character encoding is EUC-KR.
When I changed the xml docs. to html , 
the EUC-KR character displayed like ???.

How can I translate the EUC-KR character exactly ?
Any comments will be appreciated.

Thanks,

youngho.


Re: Question for using Anakia

Posted by Youngho Cho <yo...@nannet.co.kr>.
Hi,

Yes. 
I was put the properties file into the wrong place.
It should be the same place of the build.sh file with the .vsl file not into the templatePath directory.

Thanks Jon,

Greate Anakia !

youngho

----- Original Message ----- 
From: Youngho Cho <yo...@nannet.co.kr>
To: <ve...@jakarta.apache.org>
Sent: Thursday, June 14, 2001 8:40 AM
Subject: Re: Question for using Anakia


> Hi,
> Yes. I tried.
> 1. I set velocityPropertiesFile="velocity.properties" in build.xml
>     and put the properties file into the templatePath directory.
> 2. In the properties file, I defined 
>     input.encoding=EUC-KR
>     output.encoding=EUC-KR
> 3. I used 1.1-rc2.
> 
> Um.... I am ckecking the log file again now, and found the reason I think.
> 
> Wed Jun 13 18:07:07 JST 2001   [info]   [info] Default Properties File: org/apache/velocity/runtime/defaults/velocity.properties
> 
> I'm not sure why velocity use Default Properties File. Maybe I am wrong setting in the build.xml file.
> Anyway Thank for your kind response and forgive me my impatience.
> 
> Thanks,
> 
> youngho
> 
> ----- Original Message ----- 
> From: Jon Stevens <jo...@latchkey.com>
> To: velocity-user <ve...@jakarta.apache.org>
> Sent: Thursday, June 14, 2001 5:53 AM
> Subject: Re: Question for using Anakia
> 
> 
> > on 6/13/01 2:36 AM, "Youngho Cho" <yo...@nannet.co.kr> wrote:
> > 
> > > Hi,
> > > 
> > > I would like to use Anakia for translating XML to HTML.
> > > The XML doc. character encoding is EUC-KR.
> > > When I changed the xml docs. to html ,
> > > the EUC-KR character displayed like ???.
> > > 
> > > How can I translate the EUC-KR character exactly ?
> > > Any comments will be appreciated.
> > > 
> > > Thanks,
> > > 
> > > youngho.
> > 
> > I believe that I already answered this question on the turbine-user list.
> > You need to tell Anakia to use a velocity.properties file and then set the
> > input/output encoding properly. You will also probably need to use the
> > version of Velocity in CVS.
> > 
> > -jon
> > 
> > -- 
> > "Open source is not available to commercial companies."
> >             -Steve Ballmer, CEO Microsoft
> > <http://www.suntimes.com/output/tech/cst-fin-micro01.html>

Re: Question for using Anakia

Posted by Youngho Cho <yo...@nannet.co.kr>.
Hi,
Yes. I tried.
1. I set velocityPropertiesFile="velocity.properties" in build.xml
    and put the properties file into the templatePath directory.
2. In the properties file, I defined 
    input.encoding=EUC-KR
    output.encoding=EUC-KR
3. I used 1.1-rc2.

Um.... I am ckecking the log file again now, and found the reason I think.

Wed Jun 13 18:07:07 JST 2001   [info]   [info] Default Properties File: org/apache/velocity/runtime/defaults/velocity.properties

I'm not sure why velocity use Default Properties File. Maybe I am wrong setting in the build.xml file.
Anyway Thank for your kind response and forgive me my impatience.

Thanks,

youngho

----- Original Message ----- 
From: Jon Stevens <jo...@latchkey.com>
To: velocity-user <ve...@jakarta.apache.org>
Sent: Thursday, June 14, 2001 5:53 AM
Subject: Re: Question for using Anakia


> on 6/13/01 2:36 AM, "Youngho Cho" <yo...@nannet.co.kr> wrote:
> 
> > Hi,
> > 
> > I would like to use Anakia for translating XML to HTML.
> > The XML doc. character encoding is EUC-KR.
> > When I changed the xml docs. to html ,
> > the EUC-KR character displayed like ???.
> > 
> > How can I translate the EUC-KR character exactly ?
> > Any comments will be appreciated.
> > 
> > Thanks,
> > 
> > youngho.
> 
> I believe that I already answered this question on the turbine-user list.
> You need to tell Anakia to use a velocity.properties file and then set the
> input/output encoding properly. You will also probably need to use the
> version of Velocity in CVS.
> 
> -jon
> 
> -- 
> "Open source is not available to commercial companies."
>             -Steve Ballmer, CEO Microsoft
> <http://www.suntimes.com/output/tech/cst-fin-micro01.html>

Re: Question for using Anakia

Posted by Jon Stevens <jo...@latchkey.com>.
on 6/13/01 2:36 AM, "Youngho Cho" <yo...@nannet.co.kr> wrote:

> Hi,
> 
> I would like to use Anakia for translating XML to HTML.
> The XML doc. character encoding is EUC-KR.
> When I changed the xml docs. to html ,
> the EUC-KR character displayed like ???.
> 
> How can I translate the EUC-KR character exactly ?
> Any comments will be appreciated.
> 
> Thanks,
> 
> youngho.

I believe that I already answered this question on the turbine-user list.
You need to tell Anakia to use a velocity.properties file and then set the
input/output encoding properly. You will also probably need to use the
version of Velocity in CVS.

-jon

-- 
"Open source is not available to commercial companies."
            -Steve Ballmer, CEO Microsoft
<http://www.suntimes.com/output/tech/cst-fin-micro01.html>