GuessJapaneseEncoding Function

Guesses the text encoding used for a sample of Japanese text (2022_JP, EUC, S-JIS, or plain US_ASCII). If it is given a string whose encoding is already known to REALbasic, it returns that encoding.

Syntax
result = GuessJapaneseEncoding( text )

Parameters
text | String | The text whose text encoding will be guessed.

Return Value
Result | TextEncoding | The guessed TextEncoding.

If the encoding is unknown, it assumes the encoding is some Japanese script, and attempts to guess which one.

# See Also

ConvertEncoding, DefineEncoding, Encoding functions; TextEncoding class, Encodings object.