简体   繁体   English

vim这个字符'^ A'是什么?

[英]vim what is this character '^A'?

I have a cookies file generated by a php script using curl , when I open it with vim I see this strange character '^A' which has a blue color, I know that '^M' means linebreaks, but what is this one? 我有一个使用curl的php脚本生成的cookie文件,当我用vim打开它时,我看到这个奇怪的字符'^ A'具有蓝色,我知道'^ M'的意思是换行符,但这是什么? when i try to insert the string that contains this character into a database it looks weird. 当我尝试将包含此字符的字符串插入数据库时​​,它看起来很奇怪。 What does this character stands for, and are cookies files allowed to have special characters in them? 此字符代表什么?是否允许cookie文件中包含特殊字符?

^M isn't a line break, it's Ctrl-M (also known as \\r or Carriage Return, character code 13 / 0x0D). ^M不是换行符,它是Ctrl-M(也称为\\r或回车符,字符代码13 / 0x0D)。

^A is Ctrl-A (character code 1 / 0x01). ^A是Ctrl-A(字符代码1 / 0x01)。

You can see this by moving your cursor over the character and pressing ga . 您可以通过将光标移到字符上并按ga来查看此内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM