Search found 2 matches

by guawoo
Mar 16, 2019 9:39
Forum: General
Topic: [Solved]Why wstring data is different from its raw data
Replies: 3
Views: 237

Re: Why wstring data is different from its raw data

oh, thank you @jj2007, your answer inspired me! I get the problem with my code, the source file encoding was wrong, now I changed it to utf-8.bom from utf-8, that everything work ok:)

(btw: I use windows)

Thank you so much.
by guawoo
Mar 16, 2019 6:32
Forum: General
Topic: [Solved]Why wstring data is different from its raw data
Replies: 3
Views: 237

[Solved]Why wstring data is different from its raw data

look at code dim as wstring * 10 ws = "你好" printf("%x \n", ws[0]) 'print 4f60 printf("%x \n", ws[1]) 'print 597d printf(!"%ws\n", ws) 'print 你好 Dim As Zstring Ptr zsp zsp = Strptr(ws) For i As Integer = 0 To 3 printf(!"%x ", (*zsp)[i]) 'here , print ...

Go to advanced search