View Full Version : Character Encoding changed by JSBuilder
6 Jun 2008, 11:53 AM
Using the JSBuilder with these three files:
Causes a problem with the character encoding. The original ext-lang-fr_CA.js is encoded in UTF-8, but the output file is encoded in ANSI.
For example, before building, the month February is in ext-lang-fr_CA.js as "F
7 Jun 2008, 9:29 AM
I haven't heard about this issue before, which is surprising. We'll look into it.
7 Jun 2008, 9:33 AM
I've added this issue here: http://code.google.com/p/js-builder/issues/detail?id=28
5 Aug 2008, 6:34 AM
I was wondering if there is any update on this issue. Is a fix planned for the next release?
22 Aug 2008, 12:05 PM
I notice that Brian Moeskau is on vacation right now. I was hoping to get some update about this bug. Thanks.
I've done a bit of testing with the JSBuilder. Using JSBuilder with the tree files specified by BenPencil in that order will reproduce the problem. Using the same files but with locale\ext-lang-fr_CA.js first will not reproduce the problem; the correct encoding is used. It appears that it is using the encoding of the first file. According to Notepad++, the encoding of ext-base.js is ANSI and the encoding of locale\ext-lang-fr_CA.js is UTF-8 (with BOM). The Ext Translations (http://extjs.com/forum/showthread.php?t=4323) thread says "...please use UTF-8 for character encoding...". Therefore the locale\ext-lang-fr_CA.js has the correct encoding.
I have found a workaround. If you enter something UTF-8 encoded in the comments of the generated text (such as "Workaround to force UTF-8: Canadienne-fran
13 Nov 2008, 10:53 AM
Does anyone have any idea when JSBuilder 1.2 is planned to be released? :">
14 Feb 2009, 1:39 AM
any new release now?
19 Aug 2009, 6:15 AM
This issue is also valid for JSBuilder 2. It renders any file using umlauts unusable. You can easily reproduce with Ext JS translations.
21 Aug 2009, 12:02 AM
Just for your information: a workaround for this issue is to define the file.encoding property:
java -Dfile.encoding=UTF-8 -jar JSBuilder2.jar --projectFile ...
Powered by vBulletin® Version 4.1.5 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.