Questions tagged [codepage-437]
12 questions
2
votes
2 answers
Converting char from CP437 encoding to UTF-8 encoding always yields the same character code, thus not the same character
Problem
I'm trying to convert a character and/or byte array from the CP437 encoding to UTF-8 (Encoding.UTF8). The problem is that no matter what I try the code always yields the same character code, but since the two encodings have a different set…

Visual Vincent
- 18,045
- 5
- 28
- 75
2
votes
1 answer
linux console how to change the codepage to dos cp437
I want to view some ansi-art on the linux local-console. (my setup:raspberry pi3 / newest raspbian - no x11)
i've tried many different settings in raspi-config, dpkg-reconfigure console-setup, /etc files, environment vars but i had no luck yet. do i…

Tim Theede
- 23
- 4
1
vote
1 answer
cmd.exe interprets ♪ as ? or ΓÖ¬ when reading .bat file on codepage 437
I wish to use the ♪ character inside a custom prompt for command prompt. This needs to be done from within my AutoRun batch file. chcp gives output Active code page: 437. If I type into the console via cmd.exe running on the Windows Terminal app…

Amber Cahill
- 106
- 8
1
vote
2 answers
Character Block is not showing the right output in Turbo Assembler
I tried to create a fuel pump with only character blocks in strings but when I compiled it using TASM this is the output the dosbox gave to me.
The data that I stored are mostly character blocks some of them are half blocks up and down the most…

Connor Mcgee
- 47
- 5
1
vote
1 answer
Using code page 437 and setlocale at the same time
There's a few special characters from code page 437 that i want to use within a function that prints n-ary trees so i can do something like this:
http://www.randygaul.net/wp-content/uploads/2015/06/Capture1.png
(Basically something similar to the…

Real
- 91
- 6
0
votes
0 answers
How to write a file with codepage 1252 in Python on Linux
how can I write a file with codepage 1252 in Python on a Raspberry Pi?
I already tried this:
data = "Testdata"
with open('somefile', 'w', encoding= 'cp1252') as f:
f.write(data)
But it creates a file in the utf-8 format.
Any kind of…

Michael
- 13
- 3
0
votes
1 answer
Epson ESCPOS thermal print with special Danish character
I am using python-escpos version 2.2.0 for printing text on my Epson TM-T88V thermal receipt printer. My printer is configured:
Using international character set called "DENMARK II"
Using code page WPC1252
I have troubles in printing the…

jxw
- 586
- 2
- 6
- 36
0
votes
1 answer
Convert mangled characters back to UTF-8
Here is what I did:
I dumped a SQLite database with UTF-8 data (sqlite3 example.db .dump > dump.sql), but since this was in powershell, I assume the piping converted it to windows-1252
I loaded that dumped data into a new database, again using…

Atto Allas
- 610
- 5
- 16
0
votes
1 answer
Why does setlocale give me ? instead of normal letters?
Programming language: C
IDE: CodeBlocks
Compiler: GNU GCC Compiler
OS: Windows 7
My cmd defaults to code page 852, so I decided to use setlocale(), to set it to code page 437 using
setlocale(LC_ALL, "English_United States.437")
But doing so would…

ropeFullOfHope
- 27
- 6
0
votes
0 answers
Error for display Backslash in Command Line?
I think it's a rarely situation, when i try to type backslash() in my CMD it appear a ¥ instead as the picture below. It don't cause any error except in MYSQL cmd when i try to declare string with both single and double quotes like…
0
votes
0 answers
CP437 writing dash sign ─
Using sprintf need a fill up a character https://www.compart.com/en/unicode/U+2500
On console unix:
php > echo sprintf("%'-7s", '');
-------
php > echo sprintf("%'─7s", '');
�7s
A sign "─" is cp437 dash.
I need result:
───────
TEST:…

Marin Sagovac
- 3,932
- 5
- 23
- 53
0
votes
0 answers
Get Code Page from wchar_t string
Is there a way to get the code page given a string in a given language?
Example:
TCHAR *str = "你好";
int codepage = GetCodePage(str); // Should return 936 Chinese Simplified.

user3716892
- 101
- 7