Namespaces
Variants
Actions
(Difference between revisions)

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

Jump to: navigation, search
m (Removed protection from "KIJ000084 - Default encoding is ISO-8859-1 instead of UTF-8": Merging into Wiki)

Revision as of 07:02, 30 March 2012

Article Metadata

Tested with
Devices(s): Nokia 6600

Compatibility
Platform(s): S60 2nd Edition

Article
Created: User:Technical writer 1 (20 Aug 2007)
Last edited: hamishwillee (30 Mar 2012)

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");

136 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved