|
-
Feb 28th, 2011, 07:55 AM
#1
Thread Starter
New Member
Help! StringToByteArray (StrConv Replaecment)
hello..
as you know StrConv don't work fine when "language for Non-Unicode characters" option is set to any thing other than english.
so, if you want to convert string to byte array using this it won't work
bytTEMP = StrConv(strTEMP, vbFromUnicode)
one solution i found after 4 hours of searching was putting LocaleID parameter
specific for the non-unicode language you set..
so this way it will work..
bytTEMP = StrConv(strTEMP, vbFromUnicode, LocalID)
you can get your LocalID from this list :
http://support.microsoft.com/?kbid=221435
but this solution is not practical since there is no function as i know to retrieve LocalID and pass it to the StrConv before Converting
any help will be greatly appreciated
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|