Coder Social home page Coder Social logo

Comments (14)

meiko-rkc avatar meiko-rkc commented on June 2, 2024

anybody can help me

from tabulate.

meiko-rkc avatar meiko-rkc commented on June 2, 2024

@p-ranav

from tabulate.

p-ranav avatar p-ranav commented on June 2, 2024

Hello. Please provide a clear reproducible example - some snippet of code that I can run.

Detail what exactly doesn't work and how I can reproduce the issue.

If it is already reported in a different issue, then this would be considered a duplicate.

What compiler are you using? What version of tabulate are you using?

Please provide clear details when you open issues - otherwise, it is hard to provide any support.

from tabulate.

meiko-rkc avatar meiko-rkc commented on June 2, 2024

@p-ranav
I have used the MSVC compiler and MinGW compiler. Only the Windows platform has the following problems:

  1. Some special characters, such as {"ᛏᚺᛁᛊ ᛁᛊ ᚨ ᛊᛏᛟᚱy ᛟᚠᚨ ᛒᛖᚨᚱ ᚨᚾᛞ\n"}, cannot be displayed on the Windows console. Garbled characters are displayed.
  2. Functions such as bold fonts, underline characters, and blinking characters cannot be implemented.
    The test code I used was the test code you provided.

And when I ported the code to the linux operating system, compiled and run, there was no such problem. On the one hand, I know that the Linux console uses UTF-8 encoding by default and Windows uses ANSI, and when I change the Windows console encoding format to UTF-8, the above special characters still cannot be displayed.

from tabulate.

meiko-rkc avatar meiko-rkc commented on June 2, 2024

https://github.com/p-ranav/tabulate

from tabulate.

meiko-rkc avatar meiko-rkc commented on June 2, 2024

you provided

from tabulate.

meiko-rkc avatar meiko-rkc commented on June 2, 2024

CMakeList.txt
image

from tabulate.

meiko-rkc avatar meiko-rkc commented on June 2, 2024

this is the running result
image

from tabulate.

meiko-rkc avatar meiko-rkc commented on June 2, 2024

no underline and cannot display the special character.

from tabulate.

meiko-rkc avatar meiko-rkc commented on June 2, 2024

@p-ranav

from tabulate.

p-ranav avatar p-ranav commented on June 2, 2024

There are a number of pages online regarding how to change Windows cmd settings in order to view unicode characters. I'd suggest that you look through these documents to figure out how to change (1) font, e.g, Lucida Console, (2) console code page, to be able to print and see unicode characters.

This is imo more of a problem with Windows defaults for its command line and has less to do with tabulate.

from tabulate.

meiko-rkc avatar meiko-rkc commented on June 2, 2024

If it's only a coding problem, why can't underline and blink on windows os? Are these also coding issues?Although I find that some problem can be solved by changing the code page and true type front.

from tabulate.

meiko-rkc avatar meiko-rkc commented on June 2, 2024

@p-ranav

from tabulate.

meiko-rkc avatar meiko-rkc commented on June 2, 2024

help!@p-ranav

from tabulate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.