edmiConvertString


 

EdmiError edmiConvertString (SdaiString     inputString,
                             SdaiInteger    inputStringEncoding,
                             SdaiString     *convertedString,
                             SdaiInteger    convertedStringEncoding,
                             SdaiBoolean    *anyChanges);


This function will convert a given string, inputString, from one encoding style,inputStringEncoding, to another encoding style,convertedStringEncoding.

Arguments


TypeNameComment
SdaiString

inputString

Input string

SdaiInteger

inputStringEncoding

valid input:  
CHAR_ENCODING_UTF-8
CHAR_ENCODING_UTF-16
CHAR_ENCODING_ISO-10646-UCS-2
CHAR_ENCODING_ISO-10646-UCS-4
CHAR_ENCODING_ISO-LATIN-1
CHAR_ENCODING_ISO-LATIN-2
CHAR_ENCODING_ISO-8859-3
CHAR_ENCODING_ISO-8859-4
CHAR_ENCODING_ISO-8859-5
CHAR_ENCODING_ISO-8859-6
CHAR_ENCODING_ISO-8859-7
CHAR_ENCODING_ISO-8859-8
CHAR_ENCODING_ISO-8859-9
CHAR_ENCODING_ISO-2022-JP
CHAR_ENCODING_SHIFT_JIS
CHAR_ENCODING_EUC-JP

SdaiString

convertedString

output string with the given encoded string

SdaiInteger

convertedStringEncoding

output as:  
CHAR_ENCODING_UTF-8
CHAR_ENCODING_UTF-16
CHAR_ENCODING_ISO-10646-UCS-2
CHAR_ENCODING_ISO-10646-UCS-4
CHAR_ENCODING_ISO-LATIN-1
CHAR_ENCODING_ISO-LATIN-2
CHAR_ENCODING_ISO-8859-3
CHAR_ENCODING_ISO-8859-4
CHAR_ENCODING_ISO-8859-5
CHAR_ENCODING_ISO-8859-6
CHAR_ENCODING_ISO-8859-7
CHAR_ENCODING_ISO-8859-8
CHAR_ENCODING_ISO-8859-9
CHAR_ENCODING_ISO-2022-JP
CHAR_ENCODING_SHIFT_JIS
CHAR_ENCODING_EUC-JP

SdaiBoolean

anyChanges

When at least one character in the "inputString" is changed during the conversion, the "anyChanges" argument is set to sdaiTRUE, else the argument is set to sdaiFALSE.

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.

 

Options


  

 

Example


 

 <example>

 

See also

Filter by label

There are no items with the selected labels at this time.

Â