Hi Xiaoming:

- I have exactly the same problem here, with GlassFish 4.1 and UTF-8 (with locale Spanish language). Some weeks ago I give up trying to do with GlassFish, and started using a Tomcat 8 listening in specific port. It's a pitty because now I have Tomcat alongside GlassFish in the same server (GlassFish is already used with others web apps I wanted to integrate with JSPWiki).

- I can confirm that exactly the same JSPWiki WAR in the same machine/JVM works ok in Tomcat and not in GlassFish 4.1. Also, this GlassFish is already serving others web apps with correct UTF-8, so I'm not sure where the problem is.

- Still looking for a solution, I could make some tests if needed,

Mario

El 08/06/15 a las 12:00, Xiaoming Yang escribió:
Hi All,

I am a new user of JSPWiki. Having played with it for a while, I do like it. 
Here is my setup:

*         Java(TM) SE Runtime Environment (build 1.7.0_80-b15)

*         Red Hat Enterprise Linux Server release 6.3 (Santiago) (64bit)

*         GlassFish Server Open Source Edition 3.1.2.2 (build 5)

*         JSPWiki 2.10.1

Here is the problem:
I create a page called 'Test', and put some Chinese in it. The Chinese 
characters are displayed correctly.
After I save it, The Chinese characters become gibberish in the browser.
However, the page and its content are stored correctly on the disk, and the file command 
reported as ".../Test.txt: UTF-8 Unicode text, with CRLF line terminators"
Even stranger, if I edit the page again and save it immediately without doing 
anything, the gibberish Chinese string has doubled in length.
Now I check the file content on the disk, it becomes gibberish too, but the 
file command still reported it as UTF-8 Unicode text.
Could anyone tell me what is going on here?

BTW, the GF server and my browser have been verified with other web apps, and 
they are capable handle Chinese without any doubts.

Regards,
Xiaoming



Reply via email to