{ "id": "62763", "key": "TIMOB-2131", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:11.000+0000", "created": "2011-04-15T03:11:21.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "unicode" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:11.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}
1.create a project, and on the edit tab add words to fields\nusing umlauts (übersichtlich)
\n2.query the values
results: umlauts appear as ✓°
\nexpected: umlauts? not setting priority or state, assigned to\nDon for triage.
I assume \"1.create a project, and on the edit tab add words to\nfields
\nusing umlauts (übersichtlich)\"
\nthis is create project in the titanium mobile, right?
\nseems not a bug, I type both å and Chinese into copyright\nfield,
\nboth looks correct after save and switch back.
what am I miss here?
I believe Thomas means for you to create a program that queries\nthe values using Ti.Platform and check them after they've been\nlogged.
Hey Julian, you could use kitchensink to do this:
\n1.open kitchen sink in Titanium Developer
\n2.On the edit tab add the characters to the fields (publisher,\ndescription fields)
\n3.save and launch the project in the sim/device
\n4.Platform tab>Application Data queries and displays the\ninfo
tiapp.xml stores correct utf8 chars, so it is the android side\nhas issues.
so it is Titanium.App.getDescription() those method may return\nwrong data
by searching getDescription, I found several places in java code\nhandles this
\none is
\nAppInfo.java is auto generated.
\n public String getDescription() {\n return \"${app_info['description']}\";\n }
\n
\nothers are all just return save string
\nis there a doc about the call path of js calls?
\nsuch as how Titanium.App.getDescription() runs in the\nappcelerator?
ok, so the problem is code generates KitchensinkAppInfo is not\nutf8, it generates
\npublic String getPublisher() {
\n return \" 误¨¨¨å\";
\n
\n}
\nwhere is the code to generates the code?
ok, so the problem is eclipse project property, code text is not\nutf8, once I change it, then it works.
however, end user can't use eclipse, so to fix it, need to fix\nthe build system, to indicate code file is utf8
ok, the fix is add
\nencoding/=UTF-8
\nto
\n.settings/org.eclipse.core.resources.prefs
when it generates project
this setting is used by eclipse, so the appcelerator build needs\nother 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:
\n\nhttps://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