问题
I have a Unicode file (UTF-16 FFFE little-endian BOM) which contains rows of tab-separated fields.
Read Splitting unicode (I think) using .split in ruby, I am going to use the Ruby split (file to lines, then line to fields).
BTW, what's the Unicode char for:
- LF
- CR
- Tab
Thanks!
回答1:
LF: U+000A CR: U+000D Tab: U+0009
http://en.wikipedia.org/wiki/List_of_Unicode_characters
回答2:
Unicode TAB is u0009
. LF is u000a
and CR is u000d
Same as ASCII actually.
来源:https://stackoverflow.com/questions/2445175/tab-lf-cr-unicode-character