David Gibbs skrev:
OK, this is not specifically i related, but I'm encountering this trying to talk to the i.

How do you check a String to see if it contains Japanese characters (double or single byte)?
If you have a String you can iterate it and simply look at the unicode value for each character (the fancy stuff with code points is still beyond my comprehension).

If we talk about a decoding issue of a byte stream, you most likely need to provide more information.

(and if you happen to have a person who can read Japanese then generate a small file named snippet.xml looking like

<foo>&#char1;&#char2;....</foo>

(where char1 is the numeric value of the character at position 1 in your string, char2 is at position 2 etc). An example would be:

<foo>&#65;&#66;&#67;</foo>

You can then open snippet.xml in Internet Explorer or Firefox and see a rendered version. You should see <foo>ABC</foo>

Hopefully this helps :)



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.