If s
contains 20000
and j
is Len(s)
the following
Dim b(1 To 8)
b() = ChrW("&H" & Mid$(s, 1, j - 4)) & ChrW("&H" & Mid$(s, j - 3))
does not work. It returns 2 characters while U+20000 is a single.
If s
contains 20000
and j
is Len(s)
the following
Dim b(1 To 8)
b() = ChrW("&H" & Mid$(s, 1, j - 4)) & ChrW("&H" & Mid$(s, j - 3))
does not work. It returns 2 characters while U+20000 is a single.
Better code is based on here example: http://www.vbforums.com/archive/index.php/t-526476.html