-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get text from Byte Array #156
Comments
edited |
What error are you encountering? Can you paste it in here? |
Looking at this, it appears that you're starting with UTF-16 characters and trying to lower them to ANSI by discarding the 0s. This will break and give you weird mojibake if you have non-ANSI characters in there anywhere. So I'd start by reinterpreting the buffer as an array of 16-bit elements:
If you want an equivalent of VB.NET's
Having said all that, why are you using a |
@masonwheeler , |
Hi all,
I am making a class in Boo to automate some tasks. I did it in VB.Net earlier. This is my VB.Net code.
`Public Function EnumWindowProc(ByVal Hwnd As IntPtr, ByVal LParam As IntPtr) As Boolean
And this is my try in Boo.
`private def EnumWindowProc(Hwnd as IntPtr, LParam as IntPtr) as bool:
`
I am having an error in "String.Char(Ret[i]) ". Please help.
The text was updated successfully, but these errors were encountered: