diff options
Diffstat (limited to 'amiga/utf8.c')
-rwxr-xr-x | amiga/utf8.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/amiga/utf8.c b/amiga/utf8.c index 87c95d58a..9ea649216 100755 --- a/amiga/utf8.c +++ b/amiga/utf8.c @@ -75,3 +75,17 @@ void ami_utf8_free(char *ptr) { if(ptr) CodesetsFreeA(ptr,NULL); } + +char *ami_utf8_easy(char *string) +{ + char *localtext; + + if(utf8_to_local_encoding(string,strlen(string),&localtext) == UTF8_CONVERT_OK) + { + return localtext; + } + else + { + return NULL; + } +} |