duanhuantong8278 2014-07-25 12:13
浏览 14
已采纳

too long

I am trying to ready some text from a file and for some reason there is always: '
' character that is added add the end of every line. The charset of the file is ASCII so I looked up ascii code and all and thsi code is not htere.

When I search on google for '
' it searches for empty....I am guessing that this code means something but I can't even google it....

UPDATE: I can't edit the file to remove them because user updates them. As it is in the file, I don't see these charcters. But when I try to the read value to a variable it returns false because there is i the &13 code. Here is when I check the response of the code: 'Notes :'

And when I check the output: 'Notes:'

The way I figured out for these extra characters is because my return array had a length of 1 more than the string I was trying to compare with. Is there any way I can remove the code?

I tried teh str_replace() without any succes.

Thanks for your help, Ara

  • 写回答

3条回答 默认 最新

  • doupang5433 2014-07-25 12:18
    关注

    It's a carriage return () used in DOS files

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了