khalidabuhakmeh / ConsoleTables

Print out a nicely formatted table in a console application C#
MIT License
944 stars 157 forks source link

Special Characters break column alignment #68

Closed hbre closed 5 days ago

hbre commented 10 months ago

Special Characters like äöüßé break the column alignment.

Left output is expected but instead right output is produced:

Bildschirmfoto 2023-11-06 um 10 50 23

Expected Output would be

--------------  
| Name | Age |
-------------- 
| René |  59 |
-------------- 
| Otto |  52 |
-------------- 

but instead

--------------- 
| Name  | Age |
--------------- 
| René |  59 |
--------------- 
| Otto  |  52 |
--------------- 
oahsiao commented 5 months ago

I got the same fail for Chinese 中文測試

SIITON commented 2 months ago

Try increasing the value 127. Had the same issue with 'åäö'. image

khalidabuhakmeh commented 5 days ago

Deploying the change to NuGet now. Thank you for the fix.