Shift JIS is a character encoding for the Japanese language
Questions tagged [shift-jis]
108 questions
1
vote
2 answers
Response data is not in valid format in Ajax
I have a text file with the character set as "Shift_JIS" and the file contains Japanese characters. And then I do ajax request to that file as shown below.
$.ajax({
url: "demo.txt",
success: function(result){
alert(result);
…

mohangraj
- 9,842
- 19
- 59
- 94
1
vote
1 answer
How to get Response data character set in Ajax?
Ajax Request:
$("button").click(function(){
$.ajax({url: "demo.html", success: function(result){
$("#div1").html(result);
}});
});
Here the ajax request get the data from demo.html file and then result variable contains the response…

mohangraj
- 9,842
- 19
- 59
- 94
1
vote
1 answer
Node + Express + EJS character encoding issues (UTF-8 vs Shift_JIS)
I am working on a website that, before I ported all of the routing to a Node/Express/EJS app, had all of the character encoding as Shift_JIS (a Japanese encoding not natively supported by node). Now, all pages are rendered as UTF-8; there are some…

MikeJannino
- 1,292
- 12
- 23
1
vote
1 answer
Ruby Net::FTP - Downloading files from a server
I am trying to download certain files from a remote server using Ruby's Net::FTP class here is my code
require 'net/ftp'
ftp = Net::FTP.new
ftp.connect('mydomain', '21')
ftp.login('username', 'password')
ftp.passive = true
ftp.chdir("testing")
…

Tony Vincent
- 13,354
- 7
- 49
- 68
1
vote
1 answer
CMD has wrong encoding when launched from the Run dialog
Some time ago I had to change my system locale from Czech (default) to Japanese because I needed to run some Japanese programs that would otherwise crash.
The problem is, after switching back to Czech, my command prompt would launch with the…

Honzis
- 13
- 2
1
vote
2 answers
Set character encoding when generating CSV file Rails 4.2
I have a module to generate csv file of the model when included.
# app/models/concerns/csv_exportable.rb
module CsvExportable
extend ActiveSupport::Concern
included do
def self.to_csv(options = {})
CSV.generate(options) do |csv|
…

Tony Vincent
- 13,354
- 7
- 49
- 68
1
vote
2 answers
Different font for Shift-JIS encoded string
In Java, I am reading an array of bytes from a file encoded in Shift-JIS format, but the "style" of the characters in the acquired string looks different than normal strings (wider?).
Here is an example of what I mean for the "P" letter:
P - P
As…

Pyrox
- 551
- 5
- 17
1
vote
1 answer
Write a CSV file in Shift-JIS (MFC VC++, Windows Embedded - WinCE)
As the title says, I have been trying to write data that the user enters into a CEdit control to a file.
The system is a handheld terminal running Windows CE, in which my test application is running, and I try to enter test data (Japanese characters…

PRinCEKtd
- 270
- 3
- 12
1
vote
1 answer
Convert Japanese Kanji characters from Shift-JIS to UTF-8
I'm trying to read CSV file with some Japanese text, and write some data from this file into DB. CSV is uploaded through some Flex code I'm not very comfortable with. But on my backend side I have simple byte[] with content of the file. I'm using…

kumade
- 541
- 2
- 9
- 18
1
vote
2 answers
Japanese character encoding using Shift_JIS in Java
I have a web application which is served using tomcat.
On one of the pages, it allows the users to download a file stored on my file server. The names of most of the files present there are in Japanese. However, when the user downloads the file, the…

kosta
- 4,302
- 10
- 50
- 104
1
vote
1 answer
Using SHIFT_JIS text in PHP
I am building a form that needs to accept characters encoded in SHIFT_JIS and then send those results via email to a recipient. I've tried to simply capture the results from the $_POST variable and then to insert them into a block of text like…

Joe Corkery
- 2,564
- 3
- 18
- 26
1
vote
1 answer
How to convert Shift-JIS encoded string to UTF-8?
I am getting html source from Aozora Bunko. Html file is Shift-JIS encoded. I am trying to get book title and author. Then I want to record title and author into SQLite(UTF-8) database.
String[] splittedResult = result.split("\"title\">");
…

user3388473
- 953
- 2
- 12
- 25
1
vote
2 answers
How do I process lines with CRLF, NEL line terminators?
I need to process a file with shift_jis encoding. However the line terminators are in a format that im not familar with.
> file record.CSV
record.CSV: Non-ISO extended-ASCII text, with CRLF, NEL line terminators
Im using the general:
open my…

Todd Hunter
- 871
- 1
- 8
- 21
1
vote
1 answer
SHIFT-JIS ascii support
I want a clarification about SHIFT-JIS characters set. Is ASCII a subset of SHIFT-JIS character set similar to UTF-8. If a file has mix of SHIFT-JIS and ASCII. how can we read the same using QT codecs?

Srikan
- 2,161
- 5
- 21
- 36
0
votes
1 answer
Smarty - Shift-jis encoding without using PHP
I want to show Shift-jis characters but only when displaying it. Store in UTF-8 and show in Shift-jis, so what is the solution to do that in Smarty?

emeraldhieu
- 9,380
- 19
- 81
- 139