I'm learning pdcurses on visual studio with GBK code, and it shows garbled when I use printw(), addstr() and addwstr() to print Chinese characters. I just tested the three functions, but I think all these printing functions won't work for Chinese. Maybe UTF-8 will work(I don't test that because visual studio can not fit UTF-8 well)?
Related Questions in C
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in UTF-8
- Can't we make a better variable-length character encoding with just using the 1 bit extra in the 7 bit ASCII?
- UTF-8 issue with excel
- UTF-8 string has too many bytes using SBCL and babel on Windows 64 bits
- How to convert from Java ASCII properties to UTF8 (Java 9) properties
- How to read a file that contains both ANSI and UTF-8 encoded characters
- BSONError in MongoDB Compass
- Create HMAC SHA-1 in JS with byte array
- pdftk unicode works in preview but not adobe acrobat
- xml file from ISO-8859-2 to UTF-8 in python
- How to store metadata for a UTF-8 text file cross-platform?
- Encoding problem on MySQL: Why some non-ASCII characters get encoded on more than 4 bytes?
- How to get character position in a text file encode in UTF-8 in C?
- Unicode character ſ is matched as itself and as 's.'
- VS Code integrated terminal UTF-8 input problem
- pdftk generated pdf does not render correct utf-8
Related Questions in CHARACTER-ENCODING
- Can't we make a better variable-length character encoding with just using the 1 bit extra in the 7 bit ASCII?
- Cpanel filter encoding utf-8?
- bagaimana cara menginstall steghide lewat mac
- Encoding problem on MySQL: Why some non-ASCII characters get encoded on more than 4 bytes?
- Matching multi-language (latin extended) characters in lua
- Handle mixed charsets in the same json file
- MIPS Aiken to Binary
- I am not sure why I need to Encode path parameter TWICE to make the rest call with special chars to work?
- having character encoding problem on my blog content in php application
- Visual C++ - how can I turn a unicode character into char or string?
- Cypresss Unable to Load UTF-16 Website on Brower Launch
- How to set encoding?
- HL7 encoding characters in non-ASCII strings
- How to fix these two warnings about implicit string cast during charset conversion?
- Python PyODBC and SQL Server encoding issue
Related Questions in PDCURSES
- Rust's pancurses library is opening a new terminal instead of running in the current terminal
- How to fix the width and height of the window using curses in Python?
- How to fully recolor window background after resize in PDCurses?
- pdcurses installation has a type declaration error
- How to debug an external console configuration in CLion?
- mingw32-make cannot find standard C libraries
- Why mvprintw works only after getch?
- Why is only the reference to endwin() not defined, when compiling this example code for PDCurses?
- no pdcures.dll created when using make -f Makefile for win 10 pdcurses
- Python ncurses program stops working when resizing command prompt to mininimum size
- PDCurses set key repeat delay to 0
- What can I replace with the sleep command in the Windows variant of ncurses?
- How Do I Use These .dll Files In My Visual Studio Project?
- pdcurses wmove not positioning cursor in window but rather in the stdscr
- PDcurses:why can not work for Chinese characters?
Related Questions in GBK
- Is there a solution to run non-unicode (GBK) program in linux?
- About Java's character encoding for System.in in Windows CMD?
- python print method will raise encoding error when following | or > in powershell on windows
- The return result of the terminal command cannot be decoded normally
- How to make ".gbk" file from gbff/gff/fna/gb or any Genbank file format?
- Python3 ZipFile how to write non-utf8 filename to archive by using writestr function
- anti-SMASH antismash --check-prereqs TRACEBACK and IMPORT ERRORS
- iconv example to convert UTF-16BE Chinese simplified covert to GBK
- A bug when using jemdoc+mathjax
- How to support UTF-8 on Windows without using "chcp 65001" command in C++?
- PDcurses:why can not work for Chinese characters?
- pip cannot install or upgrade, with UnicodeDecodeError reported
- Wrong charset?Java program get the damaged string from args[0]
- About encoded proplems between python and C++
- illegal multibyte sequence in Pycharm while using exec(open('file.py').read())
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I know how to do. At first I compiled the pdcurses.dll with "WIDE=Y DLL=Y" option, as I thought Chinese characters are wide charcaters. In this case neither GBK nor UTF-8 will work for Chinese. Then I added "UTF8=Y" when making, the result was improved: when using UTF-8 to code, it can show right Chinese characters, though it puts a Chinese character, which is wide charcter and is the length of two English letters, in the size of one English letter, which makes it complete mess. So I just throw away "WIDE=Y" and "UTF8=Y" and then get the correct result. Really annoying.