Questions tagged [multibyte-characters]

37 questions
1
vote
1 answer

Multi-byte Character store (In BLOB) and search(using JSON functions) in single byte Oracle Environment

Details : Oracle Database 12c, Database version : 12.1.0.2.0 Problem Description and requirement : Part - 1 : I have JSON data stored in NCLOB column. I have requirement to search the text from JSON data. Considering performance, I have option to…
1
vote
0 answers

Why can't I convert a multibyte string to a wide string? mbsrtowcs fails with EILSEQ even though the mbstring seems valid

Please see this snippet I wrote that is supposed to simply convert a multibyte string (which it gets from stdin) to a wide string. Having read the mbsrtowcs and mbstate_t documentation from cppreference I thought it was valid: #include…
user4385532
1
vote
1 answer

Convert old Visual Studio C++ project from multibyte character set

I would like to transfer an old C++ MFC project from Visual Studio 2005 to a newer version. The project uses a multibyte character set that I know is no longer supported in the current Visual Studio. The first step should therefore be to make the…
TalkingCode
  • 13,407
  • 27
  • 102
  • 147
0
votes
1 answer

Write Unicode text to a file in 'wb' mode using C and Objective C?

I have this unicode text which contains unicode characters NSString *fileName = @"Tên tình bạn dưới tình yêu.mp3"; const char *cStringFile = [fileName UTF8String]; Now I need to save this string in hex/binary format to a file in this…
KamyFC
  • 858
  • 9
  • 17
0
votes
1 answer

ActiveMQ REST DELETE call unable to read multibyte characters

I'm using Apache ActiveMQ 5.16 and simply trying to send data with multibyte characters (e.g. 日一国会ABC) to a queue using ActiveMQ web console. I'm using CURL call to read the data but response has data as ????ABC. Can someone point me to what might…
utkarsh31
  • 1,439
  • 2
  • 13
  • 20
0
votes
1 answer

Which is the first multi-byte UTF codepoint?

I just wanted to know which unicode blocks can be safely used when being limited to single-byte codepoints only. So, which is the last single-byte codepoint, and which is the first multi-byte codepoint?
loominade
  • 1,028
  • 1
  • 11
  • 21
0
votes
1 answer

Printing a wchar_t as part of a wchar_t* string does not terminate

So, I found a bug in glibc that I like to report. The issue is that printf() counts the wrong width for a grouping character in the no_NO.utf8 locale and thus does not set aside enough padding to the left of the string. I originally spotted this in…
oligofren
  • 20,744
  • 16
  • 93
  • 180
0
votes
0 answers

PHP 7 to 8 migration, what to do with MB_OVERLOAD_STRING

I am trying to migrate php website from version 7 to 8. There is MB_OVERLOAD_STRING used, which is removed in PHP 8. What should I do to migrate it? Just replace all strpos, and other functions to mb_strpos or something else?
Zlelik
  • 559
  • 1
  • 7
  • 17
0
votes
1 answer

difference between declaring char variable with '' or "" in c

what is the difference between char name='chiheb'; char name="chiheb"; I'm also confused about how char can allow many characters .what is the difference then between string and char;
0
votes
0 answers

the relationship between Visual Studio "Character Set Configuration" and the encoding scheme?

As Microsoft stated that: Multibyte character sets, in particular the double-byte character sets (DBCS). Multibyte character sets provide a means to represent the large number of characters in many Asian languages. DBCS code pages are used for…
Dexter
  • 101
  • 1
  • 9
0
votes
1 answer

C++ (Windows): MultiByteToWideChar not working for some characters

I'm reading a file of thousands of non-English strings, many of them East Asian, using fgets, and subsequently calling MultiByteToWideChar to convert them back to Unicode: WCHAR wstr[BUFSIZ] = { '\0' }; int result = MultiByteToWideChar(CP_UTF8,…
MiloDC
  • 2,373
  • 1
  • 16
  • 25
0
votes
1 answer

How to manipulate multibyte string in python?

I have a log file having multibyte data in it (). I want to write a script that does some data manipulation on it. with open(fo, encoding="cp1252") as file: for line in file: print(line) if("WINDOWS" in line): …
0
votes
2 answers

Multibyte characters reading problem in IronPdf

I am trying IronPDF. I want to insert PDF metadata to database which I read with IronPDF. However, some "ı" characters in the metadata are not read with IronPDF. Spaces are left in place of these characters. Here is my code sample: var md =…
Quince
  • 144
  • 11
0
votes
0 answers

Print multibyte characters to stdscr/program window NCURSES

Currently I try to simulate matrix rain using C and NCURSES. I need to print multibyte characters to the program window using NCURSES. I have function that return random chars 12784-12799 range from Unicode. These are Japanese characters converted…
0
votes
0 answers

How to treat multibyte characters simply as a sequence of bytes?

I would like to use vim with binary files. I run run vim with -b and I have isprint = and display += uhex. I am using the following statusline: %<%f\ %h%m%r%=%o\ (0x%06O)\ \ %3.b\ <%02B>\ %7P so I get output containing some useful information like…
The Vee
  • 11,420
  • 5
  • 27
  • 60