Shift JIS is a character encoding for the Japanese language
Questions tagged [shift-jis]
108 questions
0
votes
1 answer
Getting a character map of any obscure character set/encoding (e.g. ibm-943_P14A-2000)
Recently our software has had an issue with certain obscure kanji (Chinese characters) not being picked up by our Shift-JIS encoding. I made an algorithm to read through any Shift-JIS string to try to find any "out of bounds" Kanji and switch the…

MojiBake
- 23
- 3
0
votes
1 answer
Inserting UTF8 data into SJIS DB (MySQL)
I am working with web-app (JSP) which inserts data to mySQL database from webform, the data is sent to servlet as parameters encoded in UTF8. Application works perfectly with normal letters and with symbols till certain extent. But if I am trying to…

jzr
- 60
- 2
- 7
0
votes
1 answer
HTML Japanese Encoding Issue
Facing Issue in my HTML page for Japanese OS.
After encoding to Japanese JIS my HTML form source looks like

vijay
- 679
- 2
- 7
- 15
0
votes
1 answer
How can I handle mal-encoded character with Python 2?
The HTML file I am fetching has some characters that are not supported by the encoding specified in HTML header:
I found the following ones are not supported by Shift_JIS encoding but actually used. My browser can correctly show those…

Daisuki Honey
- 157
- 4
- 12
0
votes
1 answer
Pasting Japanese Shift-JIS encoded text into a UTF-8 application
I have a question related to the encoding of Japanese text.
Let us say I have a system which comprises a jvm and a database. It serves pages through an application server to client users on Internet Explorer web browser. The JVM and database use…

daqpan
- 7
- 5
0
votes
1 answer
Python - ShiftJIS errors in DOS
I have csv files that I need to edit in Python that have to remain in Shift-JIS. When test my code by entering each section into the Python interpreter, the files get edited fine and they stay in Shift-JIS. I run the following lines in the Python…

Tensigh
- 1,030
- 5
- 22
- 44
0
votes
2 answers
Perl one liner to convert from shiftjis to utf8
I am trying the following one liner to convert a file from shiftjis encoding to utf-8 and its not working. Any helpful smart people available?
perl -i.bak -e 'use utf8; use Encode qw(decode encode); my $ustr = Encode::decode("shiftjis",$_); my…

ojblass
- 21,146
- 22
- 83
- 132
0
votes
0 answers
Replacing bytes to character not working
i am trying to read some text from a binary file using streamreader, the file is composed of pointers, pointing to text strings, so the text is japanese, and there are some tags around some of those japanese characters (signifying top…

Omarrrio
- 1,075
- 1
- 16
- 34
0
votes
1 answer
Perl file processing on SHIFT_JIS encoded Japanese files
I have a set of SHIFT_JIS (Japanese) encoded csv file from Windows, which I am trying to process on a Linux server running Perl v5.10.1 using regular expressions to make string replacements.
Here is my requirement:
I want the Perl script’s regular…

frank
- 1,283
- 1
- 19
- 39
0
votes
3 answers
how to open a URL with non utf-8 arguments
Using Python I need to transfer non utf-8 encoded data (specifically shift-jis) to a URL via the query string.
How should I transfer the data? Quote it? Encode in utf-8?
Thanks

hoju
- 28,392
- 37
- 134
- 178
0
votes
1 answer
I want to correct PHP encoding problems on PHPLIST for SHIFT-JIS and UTF-8 foreign fonts
I have PHPLIST on my server which jammed with encoding Japanese fonts.
I installed foreign Language pack, but still cannot encode SHIFT-JIS and UTF-8.
How to correct PHP' s encoding in the files with encoding definition lines to correct encoding in…

john3825
- 587
- 1
- 6
- 14
0
votes
1 answer
Unexpected conversion of Unicode overline (U+203E) to Shift-JIS
For a customer project, a query is made against a DB and the results are written to a file. The file is required to be in Shift JIS as it is later used as input for another legacy system. The Wikipedia article indicates that:
The single-byte…

Dono
- 1,254
- 13
- 30
0
votes
3 answers
Use Shift- jis in eclipse
I want to use the Japanese in eclipse with Shift-JIS. But I can't do it. Please help me. Thank you

Khiem Khiem
- 107
- 3
- 8
0
votes
1 answer
UTF-8 and SJIS problems on Android and Sockets
I'm working on a chat app for both Android and for PCs, which communicates with each other using sockets. The problem is that although I need the app to be workable with Japanese, the Android side makes character code problems.
The server works on a…

user1535186
- 5
- 2
-1
votes
1 answer
Convert encoding of a csv file from utf-8 to shift-jis in python
I have a CSV file with utf-8 encoding. I want to change it's to shift-jis csv file using python code. Is it possible? How can i do it?

Gouri Mahapatra
- 109
- 1
- 11