×
Namespaces

Variants
Actions
Revision as of 04:25, 16 August 2013 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Tested with
Devices(s): Nokia 6600
CompatibilityArticle
Created: User:Technical writer 1 (20 Aug 2007)
Last edited: hamishwillee (16 Aug 2013)

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");
This page was last modified on 16 August 2013, at 04:25.
70 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×