Skip to content

Use UTF8 to check string length#1

Open
DerayGa wants to merge 1 commit intomaddhatter:masterfrom
DerayGa:master
Open

Use UTF8 to check string length#1
DerayGa wants to merge 1 commit intomaddhatter:masterfrom
DerayGa:master

Conversation

@DerayGa
Copy link

@DerayGa DerayGa commented Nov 30, 2018

Hi, while I use this cool project to generate md table, I found a problem.
If text contains UTF8 character. string length count will have problem.

$tableBuilder
  ->headers(['UTF8','test'])
  ->rows([
    ['Hello', '123'],
    ['Unit °C', '456'],
  ]);

expect

| UTF8    | test |
|---------|------|
| Hello   | 123  |
| Unit °C | 456  |

actually

| UTF8     | test |
|----------|------|
| Hello    | 123  |
| Unit °C | 456  |

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants