465
questions
0
votes
0
answers
67
views
NodeJS child_process.exec Wine command and get unicode characters from cmd output
I'm trying to read the output of a wine command executed via NodeJS child_process.exec that may contain unicode characters in stdout, the command is wine REG QUERY "HKCU\SomeKey".
To get ...
0
votes
0
answers
34
views
Pound sign being replaced in bcp output
I really hope somebody can help me with this.
The database's collation is SQL_Latin1_General_CP1_CI_AS and I can successfully output the pound sign with the following:
'bcp "SELECT * FROM ##Temp&...
0
votes
1
answer
81
views
why System.out.charset() not equals to stdout.encoding
My operating system is Windows 10, and the system's default code page is GBK. The JDK version is 21, and the Gradle version is 8.5. I use chcp 1252 to change the console encoding. In order to check ...
0
votes
2
answers
60
views
Can't open file passing as parameter to jar
If I run my project inside the IDE it works fine:
EXISTS c:\testvideos\[video] ролик\video.mp4
but if I run it in the Windows console I'm getting error:
NOT exists c:\testvideos\[video] ?????\video.mp
...
-3
votes
1
answer
87
views
What Microsoft SQL Server collation sorts by ASCII case insensitive?
I'm looking for a collation that sorts by ASCII but case insensitive but I am not having any luck finding one. To be explicit, the order I'm looking for is...
!
"
#
$
%
&
'
(
)
*
+
,
-
.
/
0
...
0
votes
1
answer
73
views
How to check a character is belong or not belong to specific code page?
I want to print the character only if it is not belong to specific code page.
What function I can use for this purpose?
with open('in.txt', 'r', encoding="utf-16-le") as f:
while True:
...
2
votes
0
answers
123
views
What kind of UTF-8 is the one which Excel VBA uses for internal text representation?
I am using Excel 2007 on Windows 7 in Turkish.
It is said that Excel VBA uses UTF-8 for internal text representation.
There is something strange in case transformation beyond Turkish "İ" and ...
0
votes
0
answers
94
views
Saving utf-8 text as ansi file in python
with open("C:/temp/Python/infile.csv", "r", encoding="utf-8") as csv:
for line in csv:
line = line.strip()
cells = line.split(";")
...
0
votes
1
answer
84
views
How can I write a strikethrough text to a printer that uses CP437 enconding?
I want to print a strikethrough text to a printer that uses a Code Page 437. We support this functionality in TF-8 printers adding b"\x1b\x4c" between every character. b"\x1b\x4c" ...
2
votes
0
answers
87
views
MAC CodePoint in Windows
When I examine different code pages on Windows OS, there is a code point named "MAC-CP" stands for default Macintosh code page,
> (Get-WinSystemLocale).TextInfo
ANSICodePage : 1254
...
0
votes
0
answers
81
views
^CI doesn't change the codepage in ZPL code or it's the problem of interpretation?
Here I've got a code on ZPL
^XA
^CWA,A:ARIALR.TTF
^CF20,60
^FO10,130^BCN,100,Y,Y,N^FD[Штрихкод]^FS
^FX ^CF10,20
^AAN,20,10
^CI28^FO10,0^TBN,400,200^FD[Наименование1]^FS
^XZ
The text fields ^FD[...
0
votes
0
answers
2k
views
How to set utf-8 encoding for files in Visual Studio for all new solutions
I want to all my text files (.cs, .cpp, ...) in Visual Studio (2022) to UTF-8
There is one solution for this situation when data in file cannot be saved in default system codepage: How to set standard ...
0
votes
0
answers
309
views
How to convert "\x81" to "ü" with codepage 1252 (windows 1252)
I am stuck with a simple task. I want to convert
\x81
into
ü
with the use of codepage 1252 (windows 1252).
My attempt:
data = "\x81"
print(data.encode('cp1252'))
results with an error:
...
0
votes
1
answer
150
views
SikuliX 2.0.5 code page for using with Debug.user() and popup()
I'm running Sikuli-X v2.0.5 on an Ubuntu 22.04 with lang="de_DE.UTF-8".
I've some trouble to get the right text output if it has umlaute ä,ö,ü
For exemple if I try to output the text in a ...
1
vote
2
answers
375
views
PySpark failing to decode 'cp1047' when processing mainframe input
In one of my requirements is to decode a byte-array based on a cp1047 code page. A sample of my code is:
ebcdic_str = input_bytes.decode('cp1047')
The above code using python works correctly but ...
-1
votes
1
answer
2k
views
VS Code terminal not using same codepage as VS Code editor
How do I tell VS Code terminal to use same codepage as Editor?
This code:
class Program {
static void Main(string[] args) {
WriteLine("æøå;ÆØÅ");
}
}
(encoded in UTF-8 with BOM) ...
-2
votes
1
answer
748
views
How to fix codepage in nuget package manager console?
When I'm executing dotnet command in the nuget package manager, the output displayed in ANSI codepage instead of UTF8.
Where can I find Visual Studio settings to change the characters encoding in that ...
0
votes
1
answer
732
views
Powershell, SQL Server, SQLBULKCOPY: Syntax to specify codepage or encoding
I'm using a Powershell script found at ((https://blog.netnerds.net/2015/01/powershell-high-performance-techniques-for-importing-csv-to-sql-server/) to load data from quotes delimited, comma separated ....
0
votes
0
answers
100
views
How to import unicode data from WinHttpReq
WinHttpRequest is used to import bank statement from Nordiget.com containing characters from Windows-1257 code page. For an unknown reason, FoxPro does replace accented characters with? signs. To fix ...
0
votes
1
answer
292
views
Best practice to determine the codepage of an unkown file? (with Progress-4GL Openedeg)
What is the best way to identify the codepage of a file?
I hoped i can use DetectInputCodepage but i dont know how to implement it with progress.
0
votes
0
answers
450
views
std::filesystem::directory_iterator fails with cyrillic letters
I am trying to create a file retriever. It works fine so far, except for the fact that it quits if e.g. Cyrillic characters appear in the file or directory name. In the C++ description of ...
0
votes
1
answer
357
views
Dart/Flutter - Cannot get encoding by name
I need to use Code Page 850 Ascii encoding for an issue I have, but not sure how to access/use it in Dart.
Ultimately, I need to convert a hexadecimal string to ascii. The hexadecimal includes special ...
0
votes
1
answer
149
views
Calling another script (here: Python) from a Powershell script with non-ASCII-chars in argument
I'm on Windows 10 with Powershell 5.1
printargs.py is:
#! /usr/bin/python3
import sys
for arg in sys.argv:
print(arg)
Case 1
I have a Windows batch file runme.bat:
chcp 65001
py printargs.py ä
...
0
votes
1
answer
418
views
What is "ANSI encoding" in NSIS?
I have an application that is installed using NSIS 3.x. The installer stores a path in a file that will be later checked by the application. The path is written using the FileWrite function; the ...
0
votes
0
answers
183
views
vDos (DOS emulator) shows incorrect character
that is some sort of unusual question. A friend uses an old MS-DOS program on XP to handle some database operations (.dbf files). For instance, the application shows information about product e.g. the ...
3
votes
1
answer
1k
views
how to print indian languages in ESC/POS printer? how to encoding?
I’m using Qz-tray ESC/POS printer.
printer print the Tamil characters like ????????.
Some people say I need to enable encoding the Indian character code page.
How to find the Tamil language code page ...
0
votes
0
answers
471
views
Import Using Bulk Insert with XML Format File and Codepage 65001
I am having difficulty importing a Unicoded fixed length files into SQL Server using Bulk Insert with an XML format file. The only way I can do it is to convert the file to ANSI and this loses the ...
0
votes
0
answers
27
views
Console winserv 2016 codepage
I have a problem, can't understand why my app doesn't reveal cyrillic text in console with correct codepage. On Win 10 there is ok, but on win serv 2016 there is a problem, I see diagraphs instead ...
1
vote
1
answer
45
views
Properly parsing mixed codepage strings?
I have this weird state that my db got into. Basically, some text is in mixed mode. windows-1252 and miscoded utf-8. Here's a sample:
"donc d'être transparent avec lui et surtout pas de minimiser ...
0
votes
1
answer
1k
views
With Delphi 6/7, how can I convert an AnsiString in a different CharSet, to hex String UTF-8?
I need to draw a barcode (QR) with Delphi 6/7. The program can run in various windows locales, and the data is from an input box.
On this input box, the user can choose a charset, and input his own ...
-1
votes
1
answer
639
views
How to change default code page for Net Core console application
How can i change the default encoding for the Net Core console application?
I'm using a legacy library written in .Net framework that needs to read files in windows-1251 code page but won't allow me ...
0
votes
0
answers
687
views
Mismatch charset while executing application on Windows and Wine (Ubuntu)
We have a small exe client application that used for loading the scanned images from the remote sources, what we need to do is enter the address from the images to specific text box and submit.
The ...
1
vote
1
answer
7k
views
How to use System.Text.Encoding.GetEncoding("") function for other charset than 8 supported in C# - .Net Core? [closed]
I am trying to use an encoding page that is not in the common initialized encoding pages in C#.
var greekEncoding = System.Text.Encoding.GetEncoding("1253");
using (var httpClient = new ...
2
votes
1
answer
329
views
Cyrillic characters are distorted when sending a letter
When ending a letter to Outlook mail from an Oracle DBMS that contains Cyrillic characters, the output is question marks. I do not understand how to convert the string so that the text is readable. I ...
0
votes
1
answer
2k
views
Can the command "chcp 65001" work in Windows 7?
Because of the language, I want to use chcp 65001 to let the command window become English, and call systeminfo to get data.
However, using Windows 7 after using chcp 65001 the program systeminfo can'...
0
votes
0
answers
249
views
Python - Read File with mixed Encoding/Codepage?
i try to read a file which seems to have mixed Encodings.
In this example the Character Encoding switches multiple times in one line.
The File Content is like:
L sys17200023_gamenoteSbeQ / ? P E ...
0
votes
0
answers
63
views
Ruby gets method makes command prompt crash
I am currently making an app that deals with Ancient Greek (Unicode extended) characters. To put it simple, the user types a word in Greek and the program analyses it morphologically and shows all its ...
1
vote
2
answers
1k
views
JsonNode.Parse: error parsing text with accents
I am trying to parse a Latin text with the Parse method of JsonNode from System.Text.Json class.
But when the text contains accents, the method returns escape characters.
var jsonString = File....
0
votes
0
answers
666
views
ANSI Chinese Codepage Conversion (CP950)
I am puzzled about the meaning of the chinese CP 950.
AFAIK, ANSI consists of 256 characters, but CP950 seems to have quite more.
On the WIKI page (CP950) a layout defined by Microsoft is shown as ...
2
votes
1
answer
8k
views
WIndows 11 Default API and UTF Encoding
In Windows 10 and earlier, I have been able to transfer strings in my local codepage 1250 or with CP_ACP with the following code successfully to UTF-8. But in Windows 11, this does no longer work with ...
0
votes
1
answer
823
views
LUA: how to correctly read UFT8 file names and path with accented letters and umlaut?
Inside a more complex script in LUA, I created the following function, that is supposed to
retrieve the list of all audio files located into a directory, which is specified when the function is called ...
0
votes
0
answers
250
views
Unable to Save en-dash to DB2 column with CCSID 37 through Springboot
Am doing migration from CA-Gen to SpringBoot. When I try to insert en-dash(–) in db2 column through CA-Gen its working fine. But when I try to Insert data from SpringBoot it saved as '$(26)'. If I ...
0
votes
2
answers
800
views
Useing ANSI driver to connect to a postgreSQL DB with python psycopg2
I've to transfer data from one postgreSQL DB (old) into another postgresSQL DB (new).
Old is encoded in win1252. New is encoded in utf-8.
I've already tried different methods ex. pandas.to_sql, ...
0
votes
0
answers
225
views
Delphi 2007 console application writeln() prints garbage
My Win10 is setup for Greek codepage, even for programs that don't use Unicode, but the expresion writeln(TextInGreek) prints foreign characters.
Following is a reproducable example:
program Project5;
...
0
votes
0
answers
456
views
SAP WS_DOWNLOAD function module non-english language conversion
So, I am trying to develop a Z_PROGRAM which extracts some specific data from basic SAP FI database tables such as BKPF and BSEG. I am using a function module called 'WS_DOWNLOAD', which is obsolete, ...
1
vote
0
answers
563
views
Visual Studio 2019 - open files with specific encoding (e.g. 437)
I got some legacy projects, with a source code encoding of IBM437/CP437. They need to be encoded that way at the moment, so please refrain from recommending a switch to utf-8.
So far I have ...
1
vote
0
answers
60
views
Error: "Run-Time Check Failure #2 - Stack around the variable 'output' was corrupted." while using "MultiByteToWideChar" function
I'm trying to create a function that will convert string into wstring.
I made a loop with the most fitting codepages (in my opinion), and then I started getting this error
I've had lots of issues with ...
0
votes
0
answers
171
views
VCL TDBEdit Font->Charset Property not working as expected (C++ Builder 6) in 10.3
I used to work with the TDBEdit component in C++Builder 6 in a way that I was able get text transformed from codepage 1252 to 1250 when I switched the Font->Charset from 1 (DEFAULT_CHARSET) to 238 (...
0
votes
1
answer
296
views
convert string or character to hex codes in javascript
I have a hex code table like this:
the code for "خ" is "A0" . now I want to write a function to get character or string and convert it to hex codes! how can I do that??
the ...
0
votes
2
answers
184
views
Is there an 8-bit code page (CP-####) such that every byte is defined?
I am currently trying to make a code for a data compression algorithm. My goal is to take a file and read it, convert it to its binary equivalent, and then store it into an output text file.
For ...