AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

StringLower / StringUpper for UTF-8 strings

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
rousni



Joined: 23 Mar 2006
Posts: 46

PostPosted: Thu Nov 01, 2007 5:33 pm    Post subject: StringLower / StringUpper for UTF-8 strings Reply with quote

I use this to convert UTF-8 string to uppercase:

Code:
Transform, UTF8, Unicode

ChrLst = a~A|b~B|c~C|d~D|e~E|f~F|g~G|h~H|i~I|j~J|k~K|l~L|m~M|n~N|o~O|p~P|q~Q|r~R|s~S|t~T|u~U|v~V|w~W|x~X|y~Y|z~Z|à~À|á~�|â~Â|ã~Ã|ä~Ä|å~Å|æ~Æ|ç~Ç|è~È|é~É|ê~Ê|ë~Ë|ì~Ì|í~�|î~Î|ï~�|ð~�|ñ~Ñ|ò~Ò|ó~Ó|ô~Ô|õ~Õ|ö~Ö|ø~Ø|ù~Ù|ú~Ú|û~Û|ü~Ü|ý~�|þ~Þ|œ~Œ|а~�|б~Б|в~В|г~Г|д~Д|е~Е|ж~Ж|з~З|и~И|й~Й|к~К|л~Л|м~М|н~�|о~О|п~П|р~Р|�~С|т~Т|у~У|ф~Ф|х~Х|ц~Ц|ч~Ч|ш~Ш|щ~Щ|ъ~Ъ|ы~Ы|ь~Ь|�~Э|ю~Ю|�~Я
Loop, Parse, ChrLst, |
{
   StringSplit, chr, A_LoopField, ~
   StringReplace, UTF8, UTF8, %chr1%, %chr2%, A
}


Is there a faster way to do this?
Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group