Sometime we get error from cJSON. Window utf-8 txt file attach big-endian information [EF BB BF]. It cause error when we parse json or use setcookie in PHP. I removed this information using Notepad++.

Download Link : http://notepad-plus-plus.org/


1. Save txt file to UTF-8

  File->Save to other -> Set encoding to UTF-8




2. Using Notepad ++

  Open txt file in Notepad++. Select UTF-8 without BOM







'C++' 카테고리의 다른 글

c++ string tokenizer  (0) 2015.01.09
cJSON parsing error using window utf-8 txt file, Remove UTF-8 BOM  (0) 2015.01.08
c++ Easing code  (0) 2014.10.16
c++ Builder 패턴  (0) 2014.04.16
c++ const  (0) 2014.04.15