×
Namespaces

Variants
Actions
Revision as of 13:59, 24 June 2011 by hamishwillee (Talk | contribs)

Archived:Default encoding of Java Strings is ISO-8859-1 instead of UTF-8 on S60 2nd Edition (Known Issue)

From Nokia Developer Wiki
Jump to: navigation, search

Template:KBKI


Article Metadata
Tested with
Devices(s): Nokia 6600
Compatibility
Platform(s): S60 2nd Edition
S60 2nd Edition (initial release)
Article
Created: User:Technical writer 1 ()
Last edited: hamishwillee (24 Jun 2011)

Description

Default encoding is ISO-8859-1 instead of UTF-8.

Solution

When using data, which should be UTF-8, do not assume the default charset is UTF-8 but define it explicitly. For example:

String s = new String(byteArray, "utf-8");

200 page views in the last 30 days.