Libraries
Shift JIS Source Code
 previous   up   next 

Function Summary
string
toShiftJIS (in string: stri)
Convert a string to Shift JIS character encoding.
string
fromShiftJIS (in string: shiftJIS)
Convert Shift JIS encoded string to a Unicode string.

Function Detail

toShiftJIS

const func string: toShiftJIS (in string: stri)

Convert a string to Shift JIS character encoding.

Parameters:
stri - String to be converted.
Returns:
A Shift JIS encoded string.
Raises:
RANGE_ERROR - A character of stri cannot be converted.

fromShiftJIS

const func string: fromShiftJIS (in string: shiftJIS)

Convert Shift JIS encoded string to a Unicode string.

Parameters:
shiftJIS - String with Shift JIS encoding.
Returns:
A Unicode string which corresponds to shiftJIS.
Raises:
RANGE_ERROR - If shiftJIS is not a Shift JIS encoded.


 previous   up   next