You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jspwiki.apache.org by Xiaoming Yang <xi...@ctsu.ox.ac.uk> on 2015/06/08 17:00:53 UTC

UTF-8 with version 2.10.1

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


Re: UTF-8 with version 2.10.1

Posted by Juan Pablo Santos Rodríguez <ju...@gmail.com>.
Hi,

I was about to point to the same JIRA. As it's already fixed on trunk,
would you mind building from sources (
http://jspwiki.apache.org/development/source_and_guide.html) and seeing if
that solves the issue?


thanks in advance,
juan pablo

On Tue, Jun 9, 2015 at 7:03 AM, Florian Holeczek <fl...@holeczek.de>
wrote:

> Hi guys,
>
> please have a look at [1], sounds like this is exactly your problem.
>
> Regards
>  Florian
>
> [1] https://issues.apache.org/jira/browse/JSPWIKI-880
>

Re: UTF-8 with version 2.10.1

Posted by Florian Holeczek <fl...@holeczek.de>.
Hi guys,

please have a look at [1], sounds like this is exactly your problem.

Regards
 Florian

[1] https://issues.apache.org/jira/browse/JSPWIKI-880

Re: UTF-8 with version 2.10.1

Posted by "Mario A. Guerra" <mg...@gmail.com>.
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
>
>