Daily Archive for August 13th, 2008

Line endings

Thỉnh thoảng bị gặp lỗi rất củ chuối với các ký tự new line :( Do có sự khác biệt với mỗi hệ điều hành nên cần check cẩn thận:

  • Dos/Windows: \r\n
  • Unix: \n
  • Mac: \r

Tham khảo thêm tại: http://en.wikipedia.org/wiki/Line_endings

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]