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 :

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++11 min, max 범위, 난수 생성  (1) 2020.04.07
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

댓글을 달아 주세요