01-29-2012 08:51 PM
I find the file URLDecoder.java in ext\common\blackberry\common\ut
decodingMap.put( "%80", "€" );
decodingMap.put( "%81", " " );
decodingMap.put( "%82", "? );
decodingMap.put( "%83", "? );
decodingMap.put( "%84", "? );
decodingMap.put( "%85", "? );
decodingMap.put( "%86", "? );
decodingMap.put( "%87", "? );
decodingMap.put( "%88", "? );
decodingMap.put( "%89", "? );
decodingMap.put( "%8A", "? );
decodingMap.put( "%8B", "? );
decodingMap.put( "%8C", "? );
then i tried to fix it and save the file as UTF-8, but i also got failed in compiling...
I do not know why, and I do not know how, or the sdk is not suitable for Unicode System?
My system is Windows 7 x64
01-30-2012 08:16 PM
02-17-2012 01:05 AM
Just to add to the above comments. I am working with the 2.3.0.9 blackberry phone sdk and I am also seeing this problem. The operating system is Windows7 (simplified chinese).
The probem is a compilation error in the generated code at
..AppData\Local\Temp\widgetGen.#.tmp\extension\bla
The compilation errors start at line 139 with:
decodingMap.put( "%80", "€" );
decodingMap.put( "%81", " " );
decodingMap.put( "%82", "? );
decodingMap.put( "%83", "? );
and it appears to be an encoding issue.
For those of you who run into this issue. You can go to
C:\Program Files\Research In Motion\BlackBerry WebWorks SDK 2.3.0.9\ext\common\blackberry\common\util
and modify the source file there -- either add the proper characters as listed here
http://www.w3schools.com/tags/ref_urlencode.asp
Or if you are in a rush, comment out the lines that throw compile errors.
For the last developer who modified this file, I'm not sure what the intended encoding of this file is. I thought it might be utf-8, but its not so who knows. But it's important that you kow what the encoding is supposed to be and that in your packaging code that you specifically tell that to the java compilier. Otherwise its just one of those "It works on my machine" type of deals, but in reality the SDK is broken.
02-19-2012 10:07 AM
Which Sun/Oracle JDK are you using... Is it JDK version 1.6 32-bit?
If not, this is one of the requirements for the SDK.
04-02-2012 08:19 AM
Hi,
As a possible workaround, please try to use native2ascii command as below.
------
C:\BBWP\ext\common\blackberry\common\util>native2ascii -encoding ISO-8859-1 URLDecoder.java URLDecoder.java_Unicode
C:\BBWP\ext\common\blackberry\common\util>rename URLDecoder.java URLDecoder.java_bak
C:\BBWP\ext\common\blackberry\common\util>rename URLDecoder.java_Unicode URLDecoder.java
------
Please see also my blog.
05-05-2012 09:53 AM
11-12-2012 11:03 PM - edited 11-12-2012 11:04 PM
Thanks. it's useful ! ![]()
see @ttakahashi