praveen.bhatia at sumpurn
Jun 17, 2008, 4:03 AM
Post #3 of 3
RE: Japanese characters transform from doc to html
[In reply to]
From: Thorsten Scherler [mailto:thorsten.scherler.ext [at] juntadeandalucia]
Sent: Tuesday, June 17, 2008 8:48 PM
To: user [at] forrest
Subject: Re: Japanese characters transform from doc to html
On Sat, 2008-06-14 at 00:32 +0900, Dr. Bhatia Praveen wrote:
> I use an  xml file ->  transformed to doc by xslt ->
> transformed to xml by my sitemap pipeline ->  transformed to
> html by forrest.
> The relevant string that gets transformed in this process is as
> follows (Please note these are Japanese character strings):
> <set lang="japanese">
> <ques> Japanese string1 <ques>
> <ans> Japanese string2 </ans>
> At [.3} these strings after transformation looks correctly like:
> - <li>
> At  in html source it looks like:
> ETC, ,1,12,3)"> Japanese string2 </a>
> Hence Japanese string1 at the href location got converted to strange
> Problem: Till step  the transformation is correct in Japanese. At
> step  the the href= portion's Japanese has become special
> characters while the value place japanese is in normal Japanese. My
> sayText() library function can't interpret these characters and
> requires normal Japanese there.
> What can I do to get the normal Japanese at the href= location after
> the transformation to html from forrest site?
Actually that is a bit cumbersome and I recommend to not directly use the
japanese character in the href attribute. The problem is that the attribute
href will be encoded via the link rewrite.
and in your script:
if (a =="YourJapaneseString"
This is not the most beautiful solution but will work.
Thorsten Scherler thorsten.at.apache.org
Open Source Java consulting, training and solutions