Re: Localization bug (#703449)

Masayoshi Nakamura <[email protected]> Mon, 21 Jul 2003 23:35:26 -0700
Newsgroups gmane.comp.java.jpublish.devel
Organization NRI Network Communications, Inc.
Message-ID <[email protected]>
Florin,

Thank you for your help...

1) Character coding.
I tried UTF-8, Shift-JIS, ISO-2022-JP, and EUC-JP. Results are
basically same. Kanji, Hiragana, and Katakana parts were not displayed
as it should be. 

2) About META tag.
My browser, Mozilla 1.4, detected character encoding specified in
jpublish.xml even there was META tag. I mean, those values in
META tag is overridden by charactger-encoding-map properties.

So... I would say META tag won't solve this problem.

Also, I would appreciate if you could send me the templates and
contents you used so that I can test'em.

Mark Nakamura

At Mon, 21 Jul 2003 22:21:27 -0400,
Florin T.PATRASCU wrote:
> 
> Hello,
> 
> Can you please be so kind to post your encoding map definition 
> <character-encoding-map path="*">.. </character-encoding-map> as declared 
> in jpublish.xml your application is using?
> 
> I am using UTF-8 and I had no problems, are you sure you're also using  a 
> proper META in your templates:
> ...
> <META http-equiv="Content-Type" content="text/html; charset=EUC-JP">
> ...
> 
> The META declaration must only be used when the character encoding is 
> organized such that ASCII-valued bytes stand for ASCII characters (at least 
> until the META element is parsed). META declarations should appear as early 
> as possible in the HEAD element. Also, did you tried UTF-8?
> 
> Sincerely,
> -Florin
> 
> 
> At 7/21/2003 21:54, you wrote:
> >Hi.
> >
> >I'm new to JPublish. I have just browsed the archive of this mailing
> >list and found there would be a bug regarding localization, which is
> >described on sourceforge.net,
> >http://sourceforge.net/tracker/index.php?func=detail&aid=703449&group_id=26450&atid=387273
> >
> >I've just tried both JPublish 1.0b1 and JPublish 2.0. JPublish 1.0b had
> >no problem with localization, but JPublish-2.0 doesn't look like
> ><page-encoding> and <template-encoding> tags are working correctly.
> >
> >Here is what I did...
> >
> >1) I wrote a simple template.html (EUC-JP encoded)
> >Kon-nichiwa(in Japanse, off course) $fs_repository.get($page.Path) 2) Also 
> >I prepared simple index.html (EUC-JP encoded) Sayonara (in Japanese, also) 
> >3) jpublish.xml is like this euc-jp euc-jp euc-jp euc-jp 4) I dumped the 
> >output of w3m browser, like w3m http://localhost:8081/jpublish-example/|od 
> >-x When I used JPublish-1.0b1, the output was like this; 0000000 b3a4 f3a4 
> >cba4 c1a4 cfa4 0a0a b5a4 e8a4 0000020 a6a4 caa4 e9a4 0a0a However, 
> >JPublish-2.0 outputs this; 0000000 3f3f 3f3f 3f3f 3f3f 3f3f 0a0a 3f3f 3f3f 
> >0000020 0a3f 000a As you can see, those don't match. Mark Nakamura 
> >------------------------------------------------------- This SF.net email 
> >is sponsored by: VM Ware With VMware you can run multiple operating 
> >systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / 
> >Novell virtual machines at the same time. Free trial click here: 
> >http://www.vmware.com/wl/offer/345/0 
> >_______________________________________________ Jpublish-developer mailing 
> >list [email protected] 
> >https://lists.sourceforge.net/lists/listinfo/jpublish-developer
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: VM Ware
> With VMware you can run multiple operating systems on a single machine.
> WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
> same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
> _______________________________________________
> Jpublish-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jpublish-developer
> 


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0