Shift JIS is a character encoding for the Japanese language
Questions tagged [shift-jis]
108 questions
0
votes
0 answers
In windows, how to correctly store/read/write strings encoded in shift-JIS or GBK
I want to develop a software which can help me manage the .exe file paths to my games. It is expected to run on Windows.
But unfortunately, my games may have the following 2 format:
ascii + Chinese Character (GBK-encoding), e.g.…

Moeda Chaos
- 63
- 8
0
votes
0 answers
Unexplained characters in Shift-JIS strings generated in RC resource files
At first, I had a .rc file from MS Visual which contains 2 types of encoding: ISO-885-1 and Shift-JIS (embedded between #pragma code_page(932) directives)
No problem on this side, all looks find under the RC editor.
But when I look at the file…

Sandburg
- 757
- 15
- 28
0
votes
1 answer
Adding support for gb2312 and sift-jis to newlib iconv
I have a requirement to covert UCS2 to following code pages
Chinese: gb2312
Japanese: shift_jis
Russian : cp1251
Hungrian, Polish and Cesky: cp1252
Default:cp1250
I could see that items 3-5 are supported in newlib iconv…

Anas
- 13
- 2
0
votes
1 answer
Laravel export csv file with 'use_bom'=>true can't render text with correct encode
I use 'use_bom' => true to read Japanese in CSV files when opening with Excel. I call through postman everything is fine, but when I call the API via FE, I get a Japanese font error.
I tried changing the content-type content-encode in the header,…

RacoonT
- 31
- 5
0
votes
0 answers
Excel - convert cell from hex string to SHIFT-JIS characters
I need to convert space delineated hex values (ie. "B2 DD C0 B0 C8 AF C4 20 B9 DE B0 D1 81 48") in a column of cells to their SHIFT-JIS character equivalent in Excel. These strings may also include line breaks that need to be included in the…
0
votes
0 answers
Using Boost::json_parser() convert Json to XML with Shift JIS encoding
In my MFC project, I must receive string of json from webservice.And then I need to convert this json to XML format. So I try to use the Boost C++ library for converting to XML file. Actually, a json will be converted to be property tree before…

Fame th
- 1,018
- 3
- 17
- 37
0
votes
0 answers
Can I define a Shift-JIS string literal in c++?
I'm writing a program which involves comparing some strings which will be encoded in Shift-JIS. I only need to compare against a few possible values, and I'd like to encode them as string constants/literals.
I know how to do this with a user-defined…

Robert Stewart
- 31
- 4
0
votes
1 answer
Convert HTML Webpage encoded in SHIFT-JIS to UTF-8
I'm viewing some webpages on the waybackmachine and am struggling to read the Japanese because its encoded in SHIFT-JIS. Is there some javascript I can apply to the strings to convert the garbled text to something readable?
Example…

kevski
- 21
- 5
0
votes
1 answer
PHP mb_convert_encoding convert from UTF-8 to SHIFT JIS is wrong
I use mb_convert_encoding function to convert UTF8 characters to SJIS characters.
Before conversion:でんぱ組 出会いの歌26 カミソヤマ ユニ
After conversion: て?んは?組 出会いの歌26 カミソヤマ ユニ
Non-convertible characters: て?んは?
Code used to convert :
$str =…

Ihenry
- 111
- 1
- 2
- 12
0
votes
1 answer
Nodejs iconv-lite convert wrong SHIFT JIS Character
I'm having trouble converting UTF8 Japanese characters to SJIS
Library used for conversion: iconv-lite
Code:
const iconv = require('iconv-lite')
const japanText = 'でんぱ組 出会いの歌26 カミソヤマ ユニ';
const buffer = iconv.encode(japanText,…

Ihenry
- 111
- 1
- 2
- 12
0
votes
1 answer
SendGrid Inbound Parse japanese (encoding: shift_jis) text garbled
Currently we are using SendGrid Inbound Parse to receive emails.
We handle the Inbound Parse webhook request by Azure HttpTrigger function implmented in C# (.NET 6).
When the received email is in UTF-8 encoding, everything's okay.
However, when we…

user19540551
- 3
- 1
0
votes
1 answer
Read and parsing SHiftJIS file in a UTF8 JVM
I have a Japanese client that provide a data feed file in SHift-JIS encoding (with both Kana and Kanji Japanese characters).
I have to upload the data in that Shift-JIS Japanese feed file, into my web application JVM, with startup option as UTF-8…

BorisJ
- 46
- 3
0
votes
1 answer
How can I convert Shift_JIS character codes to unicode characters in python?
I have a list of Shift_JIS character codes (in integers) that I want to convert into unicode characters. I think I need a version of the chr()/unichr() function that works in other encodings.
I've tried decode() in combination with hex(), but it…

ubuntor
- 1
- 2
0
votes
0 answers
Check the file's encoding is Shift-JIS (Encoding.GetEncoding(932)) in C#
I have a problem.
When a read csv file with CSVHelper in C#.
I want to get the encoding of the file and check if it is Shift-JIS (Encoding Japan) or not.
I researched a lot but couldn't find the answer.
Any help or ideas?
Thank a lot.

Quang Mẫn
- 71
- 7
0
votes
1 answer
gsed does not recognize SHIFT_JIS charactors
I'm writing a program that uses gsed to extract multibyte charactors from csv file.
It works well with csv file encoded UTF-8, but it doesn't work with csv file encoded SHIFT_JIS.
test % cat sjis_sample.csv | iconv -f shift_jis -t…

a10a
- 211
- 2
- 10