console-table icon indicating copy to clipboard operation
console-table copied to clipboard

The column width calculation is incorrect if the character set is not UTF-8.

Open Ily1606 opened this issue 1 year ago • 1 comments

I'm working with Shift-JIS encoding, columns width is incorrect

In src/LucidFrame/Console/ConsoleTable.php: is using mb_strlen to calculation string width with UTF-8 encoding, Are we have a other the solution?

Ily1606 avatar Jan 21 '25 08:01 Ily1606

@Ily1606 Can you please provide an example of your data?

cithukyaw avatar Mar 02 '25 15:03 cithukyaw