read modified utf-8

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,

i cant read the string written in writeUTF() of java. i am aware that they
are using the modified utf-8. is there a way to to this in c#?

thanks
 
ive already tried it. but still im getting the wrong output. modified utf-8
is not equal to the standard utf-8. im currently creating a wm5 application
with a j2ee backend.
 
Well sure - if it's not standard, how would a standard class be able to
handle it? You'll have to do your own custom decode logic. Eitehr than or
change the otehr end to produce something that meets some form of standard.
 
The first result in Google is a page that includes the following:

void writeUTF(String str)
Writes two bytes of length information to the output stream, followed by the
Java modified UTF representation of every character in the string s.

Assuming that's the correct method, are you skipping the prefixed length
bytes?
 
i haven't tried that method yet.

Alan J. McFarlane said:
The first result in Google is a page that includes the following:

void writeUTF(String str)
Writes two bytes of length information to the output stream, followed by the
Java modified UTF representation of every character in the string s.

Assuming that's the correct method, are you skipping the prefixed length
bytes?
 
Back
Top