W3C home > Mailing lists > Public > www-international@w3.org > April to June 2002

How to change characters mapping?

From: Sanjay Kashyap <skashyap@tsp-intl.co.jp>
Date: Thu, 30 May 2002 12:10:05 +0900
Message-Id: <>
To: www-international@w3.org

How to change characters mapping?

Any one have solution of it, to change the mapping of unknown characters in 

Pl visit following link for more details.


Unknown Characters
There is seldom a one to one mapping between two character encodings. When 
a converter encounters a character in the source encoding that cannot be 
represented in the target encoding, an UnknownCharacterException is thrown. 
This behavior can be turned off however by calling 
setSubstitutionMode(true). In substitution mode, a converter will replace 
unknown characters with a substitution character. When converting to 
Unicode the default substitution character is \ufffd, the Unicode 
Replacement Character. When converting to an external character encoding 
the default is `?'. A different substitution character can be used by 
calling setSubstitutionBytes() and setSubstitutionChars().

Pl help me.

Received on Thursday, 30 May 2002 00:17:23 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 21 September 2016 22:37:21 UTC