When first conversion with Lexikos function is successful, i use ANSI to UTF-8 fileappend encoding script on it, which is successful, but when using Lexikos function to convert it back to ANSI i get questionmarks instead of å,ä and ö. Problem with Lexikos function is it only works one time. There seem to a problem with the UTF-8 encoding done with Recording Service. If instead of using fileappend encoding i use Lexikos function to convert from UTF-8 to ANSI, the conversion is successful. GivenPath := %A_Index% Fetch the contents of the variable whose name is contained in A_Index.ĬonvertBadlyEncodedFormerlyUtf8StringFromAnsiToUtf8(UTF8)ĬonvertBadlyEncodedFormerlyUtf8StringFromAnsiToUtf8(ByRef string) However if the file is encoded with UTF-8 (encoded by Recording Service), conversion to ANSI fails immediately. Loop %0% For each parameter (or file dropped onto a script): This is the UTF-8 to ANSI conversion function, which works just fine: Now i wanna have the opportunity to convert files from ANSI to UTF-8 on the fly, but everything i try fails. Im using Lexikos UTF-8 to ANSI conversion function, which works great of course.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |