[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Cp1047 encoding problem

venkat wrote:
Hi i am trying to convert array of bytes in to string using Cp1047 encoding. but it was creating
a null string.


what may be the problem please let me know?

i am giving the code below,i am using eclipse 3.2.1 with jre 1.5.0

<b>byte[] data={65,65,65,65,65,65}; return new String(data,"Cp1047");</b>
please help me in solving the problem.
This is not an Eclipse question. Make sure the encoding is supported by your VM.

Dani
thanks and regards,
Venkat.