jasonrogena / jasonrogena/php-excel-reader

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

Open
#189 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
PHP
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```

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 = "$val";
Quote next to the $val is wrong.

Modify to

$val = "".$val."";

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

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

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

2. 635 라인 근처
$val = "$val";
$val 근처 따옴표 처리가 잘못 되어 있습니다.

아래와 같이 수정하면 될 것 같습니다.
$val = "".$val."";

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

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Check the code around line 635 in Excel_reader2.php and reproduce the Korean encoding failure reported for v2.21. Compare the htmlentitles()/htmlspecialchars() concern and the $val link construction, then verify the resulting output with a Korean sample.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.