Widrogo / php-excel-reader

Automatically exported from code.google.com/p/php-excel-reader
0 stars 0 forks source link

Cracked encoding problem in excel_reader2.php , v2.21. #189

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Cracked encoding problem in Excel_reader2.php, v2.21. 
for reference, I used the Korean.

It can be solved in the following ways.

1. about 635 lines,
   htmlentitles() : this function is not support Korean, or other Language encoding.
                    Delete this line, or Maybe can be solved by changing the htmlspecialchars() function.

2. about 635 lines,
   $val = "<a href=\"$link\">$val</a>";
   Quote next to the $val is wrong.

   Modify to

   $val = "<a href=\"$link\">".$val."</a>";

----------------------------------------------------------------------------

v2.21에서 한글 깨짐 등 인코딩 문제가 발생합니다.
참고로, 한국어 입니다. 

1. 635 라인 근처의 htmlentitles() 함수는 한국어 인코딩을 
지원하지 않습니다. 혹은 다른 언어 인코딩에서도 
마찬가지일 수 있습니다. 
해당 라인을 삭제하거나, htmlspecialchars() 함수를 사용하면 
해결될 수도 있습니다. 

2. 635 라인 근처
  $val = "<a href=\"$link\">$val</a>";
   $val 근처 따옴표 처리가 잘못 되어 있습니다.

   아래와 같이 수정하면 될 것 같습니다.
   $val = "<a href=\"$link\">".$val."</a>";

* 해외 포럼에서 한국어가 보이면 술을 쏜다는 친구의 
약속에 짧은 영어와 더불어 한국어로도 남겨 놓습니다. 

Original issue reported on code.google.com by jise...@gmail.com on 2 Jun 2014 at 1:44