2005-02-13 03:50:51 +00:00
|
|
|
/* ConvertString - Convert a string to UTF-8. */
|
|
|
|
|
|
2003-05-21 00:08:58 +00:00
|
|
|
#ifndef RAGEUTIL_CHAR_CONVERSIONS_H
|
|
|
|
|
#define RAGEUTIL_CHAR_CONVERSIONS_H
|
|
|
|
|
|
|
|
|
|
/* Convert a string to UTF-8 from the first possible encoding in the given comma-
|
|
|
|
|
* separated list of encodings. The only valid strings are "japanese" and "korean".
|
|
|
|
|
* Return true if the conversion was successful (or a no-op). Return false and
|
|
|
|
|
* leave the string unchanged if the conversion was unsuccessful. */
|
2006-01-22 01:00:06 +00:00
|
|
|
bool ConvertString(RString &str, const RString &encodings);
|
2003-05-21 00:08:58 +00:00
|
|
|
|
|
|
|
|
#endif
|