[TIMOB-2131] Android - Umlauts/unicode issues
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:58:11.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | Android |
Labels | android, defect, unicode |
Reporter | Thomas Huelbert |
Assignee | Don Thorp |
Created | 2011-04-15T03:11:21.000+0000 |
Updated | 2011-04-17T01:58:11.000+0000 |
Description
1.create a project, and on the edit tab add words to fields
using umlauts (übersichtlich)
2.query the values
results: umlauts appear as ✓°
expected: umlauts? not setting priority or state, assigned to Don for triage.
I assume "1.create a project, and on the edit tab add words to fields
using umlauts (übersichtlich)"
this is create project in the titanium mobile, right?
seems not a bug, I type both å and Chinese into copyright field,
both looks correct after save and switch back.
what am I miss here?
I believe Thomas means for you to create a program that queries the values using Ti.Platform and check them after they've been logged.
Hey Julian, you could use kitchensink to do this:
1.open kitchen sink in Titanium Developer
2.On the edit tab add the characters to the fields (publisher, description fields)
3.save and launch the project in the sim/device
4.Platform tab>Application Data queries and displays the info
tiapp.xml stores correct utf8 chars, so it is the android side has issues.
so it is Titanium.App.getDescription() those method may return wrong data
by searching getDescription, I found several places in java code handles this
one is
AppInfo.java is auto generated.
others are all just return save string
is there a doc about the call path of js calls?
such as how Titanium.App.getDescription() runs in the appcelerator?
ok, so the problem is code generates KitchensinkAppInfo is not utf8, it generates
public String getPublisher() {
}
where is the code to generates the code?
ok, so the problem is eclipse project property, code text is not utf8, once I change it, then it works.
however, end user can't use eclipse, so to fix it, need to fix the build system, to indicate code file is utf8
ok, the fix is add
encoding/=UTF-8
to
.settings/org.eclipse.core.resources.prefs
when it generates project
this setting is used by eclipse, so the appcelerator build needs other settings
fixed by the patch, also push to git@github.com:jq/titanium_mobile
Please review and pull the patch.
Thanks Julian, I've merged your fix:
https://github.com/appcelerator/titanium_mobile/commit/43057a9722b995f5661d46f4cae1449feaadd117"> https://github.com/appcelerator/titanium_mobile/commit/43057a9722b9...
Marking as fixed
closed against 1.5.0.602d6d G2 2.2 G1 1.6 sim 2.1