to get back to unicode
Function AsciiToUnicode(ByRef pstrAscii)
Dim llngLength
Dim llngIndex
Dim llngAscii
Dim lstrUnicode
llngLength = LenB(pstrAscii)
For llngIndex = 1 To llngLength
llngAscii = AscB(MidB(pstrAscii, llngIndex, 1))
lstrUnicode = lstrUnicode & Chr(llngAscii)
Next
AsciiToUnicode = lstrUnicode
End Function
Main Topics
Browse All Topics





by: sudhakar_koundinyaPosted on 2004-07-19 at 11:00:54ID: 11585760
Hope this will help you
Function UnicodeToAscii(ByRef pstrUnicode)
Dim llngLength
Dim llngIndex
Dim llngAscii
Dim lstrAscii
llngLength = Len(pstrUnicode)
For llngIndex = 1 To llngLength
llngAscii = Asc(Mid(pstrUnicode, llngIndex, 1))
lstrAscii = lstrUnicode & ChrB(llngAscii)
Next
UnicodeToAscii = lstrAscii
End Function
Regards
Sudhakar