{ "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

\n

results: umlauts appear as ✓°

\n

expected: umlauts? not setting priority or state, assigned to\nDon for triage.

{html}", "attachment": [], "flagged": false, "summary": "Android - Umlauts/unicode issues", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127579", "author": { "name": "julian", "key": "julian", "displayName": "julian", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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.

\n

what am I miss here?

{html}", "updateAuthor": { "name": "julian", "key": "julian", "displayName": "julian", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:22.000+0000", "updated": "2011-04-15T03:11:22.000+0000" }, { "id": "127580", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:22.000+0000", "updated": "2011-04-15T03:11:22.000+0000" }, { "id": "127581", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hey Julian, you could use kitchensink to do this:

\n

1.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

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:22.000+0000", "updated": "2011-04-15T03:11:22.000+0000" }, { "id": "127582", "author": { "name": "julian", "key": "julian", "displayName": "julian", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

tiapp.xml stores correct utf8 chars, so it is the android side\nhas issues.

{html}", "updateAuthor": { "name": "julian", "key": "julian", "displayName": "julian", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:22.000+0000", "updated": "2011-04-15T03:11:22.000+0000" }, { "id": "127583", "author": { "name": "julian", "key": "julian", "displayName": "julian", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

so it is Titanium.App.getDescription() those method may return\nwrong data

{html}", "updateAuthor": { "name": "julian", "key": "julian", "displayName": "julian", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:23.000+0000", "updated": "2011-04-15T03:11:23.000+0000" }, { "id": "127584", "author": { "name": "julian", "key": "julian", "displayName": "julian", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

by searching getDescription, I found several places in java code\nhandles this
\none is
\nAppInfo.java is auto generated.

\n
\n   public String getDescription() {\n           return \"${app_info['description']}\";\n   }\n
\n

others are all just return save string

\n

is there a doc about the call path of js calls?
\nsuch as how Titanium.App.getDescription() runs in the\nappcelerator?

{html}", "updateAuthor": { "name": "julian", "key": "julian", "displayName": "julian", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:23.000+0000", "updated": "2011-04-15T03:11:23.000+0000" }, { "id": "127585", "author": { "name": "julian", "key": "julian", "displayName": "julian", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

ok, so the problem is code generates KitchensinkAppInfo is not\nutf8, it generates
\npublic String getPublisher() {

\n
\n    return \" 误¨¨¨å\";\n
\n

}

\n

where is the code to generates the code?

{html}", "updateAuthor": { "name": "julian", "key": "julian", "displayName": "julian", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:23.000+0000", "updated": "2011-04-15T03:11:23.000+0000" }, { "id": "127586", "author": { "name": "julian", "key": "julian", "displayName": "julian", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

ok, so the problem is eclipse project property, code text is not\nutf8, once I change it, then it works.

{html}", "updateAuthor": { "name": "julian", "key": "julian", "displayName": "julian", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:23.000+0000", "updated": "2011-04-15T03:11:23.000+0000" }, { "id": "127587", "author": { "name": "julian", "key": "julian", "displayName": "julian", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

however, end user can't use eclipse, so to fix it, need to fix\nthe build system, to indicate code file is utf8

{html}", "updateAuthor": { "name": "julian", "key": "julian", "displayName": "julian", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:23.000+0000", "updated": "2011-04-15T03:11:23.000+0000" }, { "id": "127588", "author": { "name": "julian", "key": "julian", "displayName": "julian", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

ok, the fix is add
\nencoding/=UTF-8
\nto
\n.settings/org.eclipse.core.resources.prefs

\n

when it generates project

{html}", "updateAuthor": { "name": "julian", "key": "julian", "displayName": "julian", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:23.000+0000", "updated": "2011-04-15T03:11:23.000+0000" }, { "id": "127589", "author": { "name": "julian", "key": "julian", "displayName": "julian", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

this setting is used by eclipse, so the appcelerator build needs\nother settings

{html}", "updateAuthor": { "name": "julian", "key": "julian", "displayName": "julian", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:24.000+0000", "updated": "2011-04-15T03:11:24.000+0000" }, { "id": "127590", "author": { "name": "julian", "key": "julian", "displayName": "julian", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

fixed by the patch, also push to git@github.com:jq/titanium_mobile

{html}", "updateAuthor": { "name": "julian", "key": "julian", "displayName": "julian", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:24.000+0000", "updated": "2011-04-15T03:11:24.000+0000" }, { "id": "127591", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Please review and pull the patch.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:24.000+0000", "updated": "2011-04-15T03:11:24.000+0000" }, { "id": "127592", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Thanks Julian, I've merged your fix:
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/43057a9722b9...

\n

Marking as fixed

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:24.000+0000", "updated": "2011-04-15T03:11:24.000+0000" }, { "id": "127593", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

closed against 1.5.0.602d6d G2 2.2 G1 1.6 sim 2.1

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:24.000+0000", "updated": "2011-04-15T03:11:24.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }