Tab / LF / CR unicode character

ぐ巨炮叔叔 提交于 2019-12-10 12:27:35

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!