new CharSet encodings

R

Roedy Green

If you create your own CharSet encoding, is there a way to get it
registered so that it is supported by things such as new String(
byte[], encoding)
 
Y

Yar Hwee Boon

Roedy Green said:
If you create your own CharSet encoding, is there a way to get it
registered so that it is supported by things such as new String(
byte[], encoding)

Hi Roedy

Doesn't java.nio.charset.CharsetProvider do that when you install them
as extensions?

Hwee Boon
 
P

Paul Rowe

I am curious... how is this done pre JDK1.4 ? How does i18n.jar
register itself? I know charsets.jar uses
java.nio.charset.spi.CharsetProvider, but what if we want to add a
charset pre JDK1.4 ??

Tor Iver Wilhelmsen said:
Roedy Green said:
If you create your own CharSet encoding, is there a way to get it
registered so that it is supported by things such as new String(
byte[], encoding)

Yes, see the docs for java.nio.charset.spi.CharsetProvider and
java.nio.charset.Charset.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,479
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top