Re: Localization bug (#703449)
"Florin T.PATRASCU" <[email protected]> Mon, 21 Jul 2003 22:21:27 -0400
| Newsgroups | gmane.comp.java.jpublish.devel |
|---|---|
| Message-ID | <5.2.1.1.2.20030721221114.01dfa8a0@POP> |
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