jasonrogena / jasonrogena/php-excel-reader

Wrong encoding for cells with formatting

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

```
Reproducing:
Need file with cells formated with using of non ISO-8859-1 characters (as
example: cyrillic characters )

Outputing of this cells don't decoding.

My hack:
String 835, function _format_value($format,$num,$f) {
//Fix for format encoding
if (mb_detect_encoding($format) == 'UTF-8') $format =
mb_convert_encoding($format, 'UTF-8', 'UTF-16LE');

```

Original issue reported on code.google.com by `shemyako...@gmail.com` on 26 Oct 2010 at 2:16

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at String 835 and the _format_value($format,$num,$f) function mentioned in the report. Reproduce the problem with formatted cells containing Cyrillic or other non-ISO-8859-1 characters, then verify that the cell output is decoded correctly without the reported hack.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.