Ok. I've just about convinced myself there is something wrong with
NthField when it operates on ShiftJIS, as you have suggested. If I do
this:
s = "顔" + Chr(9) + "AB"
I should end up with a UTF8 string with a tab in it, and in fact if I
use NthField on that it works fine. But if I convert that to ShiftJIS:
s = ConvertEncoding(s, Encodings.ShiftJIS)
Then NthField doesn't work anymore. In fact, you don't even need to use
tab. A comma doesn't work either. So it would seem that NthField is
getting confused by ShiftJIS. The solution, I would think, would be to
convert everything to UTF8 before using NthField.
I just tried Split and it seems to suffer from the same problem.
--
REALbasic database options: http://sqlabs.net
REALbasic news and tips: http://rbgazette.com
KidzMail & KidzLog: http://haranbanjo.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|