jasonrogena / jasonrogena/php-excel-reader

Can't display chinese word!

Open
#36 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

```
What is the expected output? What do you see instead?

銷售貨單號碼 地區 Con. Name 未能完成送貨原因 跟進/結果

Please provide any additional information below.

Cannot display chinese correctly, but if i modify the line 635 to :

$val = htmlentities($val,ENT_NOQUOTES, 'utf-8');

that will be fine for everything
```

Original issue reported on code.google.com by `enera...@gmail.com` on 14 Jul 2009 at 8:57

Attachments:
- [sample.xls](https://storage.googleapis.com/google-code-attachments/php-excel-reader/issue-36/comment-0/sample.xls)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the Chinese-character display problem using the attached sample.xls, then inspect the code around line 635 where htmlentities is applied. Compare the current output with the proposed UTF-8 handling and verify that the displayed Chinese text is corrected without affecting other values.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.