Columns are messed up with unicode chars
See original GitHub issueExpected behavior
Tables to be correctly drawn with unicode characters
Current behavior
Tables are messed up with unicode characters
Version: 0.4.0 OS: MacOS BigSur - english language IDE: IntelliJ Idea Ultimate 2020.2 Kotlin: 1.4.0 Project type: Multiplatform, JVM variant only for this module ( stdlib-jdk8 ) JDK: 14
Chinese chars
TEXT:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ¬ββββββββββββββ¬ββββββββββββββββββββ
β εγKIBAγ ο½ζι»ι¨ε£«ι§δΌο½ β Year 2011 β Tmdb id: 257171 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ΄ββββββββββββββββββββ€
β Actors: Masaki KyΓ΄moto, Mika Hijii, Leah Dizon, Mikoto Inoue, Raima Hiramatsu, Kazuhiko Inoue, Miz... β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Genres: Fantasy, Action, Adventure β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ANSI color code
TEXT EXAMPLE
"\u001B[46mWelcome to My App!\u001B[0m"
TEXT RESULT
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β Welcome to My App! β
β β
ββββββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββ€
β β commands β
ββββββββββββββββββββββββββββββββββββΌββββββββ¬βββββββββββββββββ¬ββββββββ€
β Search a Movie by title β 1 β search β s β
ββββββββββββββββββββββββββββββββββββΌββββββββΌβββββββββββββββββΌββββββββ€
β Rate a Movie by id β 2 β rate β r β
ββββββββββββββββββββββββββββββββββββΌββββββββΌβββββββββββββββββΌββββββββ€
β Get suggested Movies for you β 3 β suggestion β g β
ββββββββββββββββββββββββββββββββββββ΄ββββββββ΄βββββββββββββββββ΄ββββββββ
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How to correctly align column containing both unicode ...
1 Answer 1 ... The width of latin and non-latin characters are different (see last column specifically), but the columns look aligned now....
Read more >Unicode characters in data frame columns do not appear as-is ...
Create a data frame containing a column with Unicode characters in it. Describe the problem in detail. Unicode characters within data frames areΒ ......
Read more >Character data is represented incorrectly when the code page ...
The character data of code page X is stored in a non-Unicode column of code page Y. Additionally, the character data is not...
Read more >what table column size is needed to accomodate Unicode ...
Alot of my table data are exactly the same size of the table column size. Now if converting to unicode, characters will take...
Read more >How to know the preferred display width (in columns) of ...
character-propertiesmbcstext-formattingunicode ... It includes a description of the problem, and an acknowledgement of the lack of standards in the area:.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think in general, no, I think thereβs nothing we can do. If thereβs actual bugs around measuring (like #20 was) we can fix those, but ultimately thereβs not much we can do here except recommend fonts which are fully monospace, despite being exceedingly rare.
Ignoring ANSI colors, for which Iβve reopened your other issue, I think thereβs two problems here:
There is no measuring for graphemes wider than one. This is our bug.
Many monospace fonts do not contain these characters and so they end up falling back to non-monospace characters. Thereβs no much we can do about this. It happens in the terminal long after weβve measured.
In your specific example, you can see how the widths of the characters are not lining up with 1 or 2 columns.