History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: APF-777
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Matt Raible
Reporter: wnqq
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse

contents encoded in wrong locale

Created: 28/May/07 02:08 AM   Updated: 07/Jun/07 08:02 AM
Component/s: i18n
Affects Version/s: 2.0-M5
Fix Version/s: 2.0-RC1

File Attachments: 1. Text File mvn.log (445 kb)

Image Attachments:

1. wrong_encoding.JPG
(67 kb)
Environment: 2.0-M5 + Struts + Basic archetype + MS windows (Traditional Chinese) + firefox2 and IE6
Issue Links:
Duplicate
 
This issue is duplicated by:
APF-791 Saving UTF-8 characters does not work... Major Resolved


 Description  « Hide
The Chinese contents (as in properties files) should be encoded with UTF-8 (instead of Big-5 or something else).

Attached please see the screenshot of webpage with garbage characters.

As far as I remember, v2.0-M4 does not have this bug. This is new in v2.0-M5.

 All   Comments   Change History   FishEye      Sort Order:
Hiugong Gwok - 28/May/07 09:49 AM
I can confirm this on IE7 too. Also zh, zh_CN is broken.
This is pretty weird, because if you do the "view source", all charaters looks ok.

jsf and spring are not affected.

Hiugong Gwok - 28/May/07 10:07 AM
It was the gzipFilter, disable it then we are good.

I found that the ehcache is still 1.2.3 even in RC1-SNAPSHOT. Is there a reason not to upgrade to 1.3.0-beta like the others?

Matt Raible - 28/May/07 10:38 AM
We did upgrade the GZipFilter to 1.3.0-beta2 recently. Can you build your project with "mvn package -X | tee mvn.log" and look at mvn.log to ensure this is the version being used?

Hiugong Gwok - 28/May/07 11:18 AM
I've checked, if I delete ehcache form local m2 repo, it keeps downloading ehcache 1.2.
It looks like1.3.0-beta2 is not in any maven repos, that's why maven fall back to 1.2.3, that's what hibernate 3.2.1.ga depends.

The folllowing log can confirm that:
[DEBUG] net.sf.ehcache:ehcache:jar:1.3.0-beta2:compile (removed - nearer found: 1.2.3)

Hiugong Gwok - 28/May/07 11:23 AM
Alfter a little bit googling, I found that ehcache 1.3.0-beta3 is released in May 27, then beta2 is removed from repo.
That's why this issue only came out today

Hiugong Gwok - 28/May/07 12:23 PM
I was wrong, 1.3.0-beta2 is in the repo, maven just didn't get it.

In the current situation we end up have both ehcache-1.2.3.jar and ehcache-1.3.0-beta.jar in the WEB-INF/lib, but not ehcache-1.3.0-beta2.jar

Check the mvn.log for detail.

Hiugong Gwok - 28/May/07 12:45 PM
More info.
This issue only affects basic artifacts, I think it is because ehcache dependency only defined in appfuse-service*.pom.
I tried moving ehcache dependency to appfuse*.pom then problems all gone.

Matt Raible - 30/May/07 12:20 PM
Should be fixed by APF-787.