Questions tagged [shift-jis]

Shift JIS is a character encoding for the Japanese language

108 questions
-1
votes
1 answer

UTF-8 cannot properly pass Japanese character (Hiragana and Katakana) strings as an argument

For example the file that I needed is found at this filepath and it will be passed as an argument: "C:\Users\user.name\docs\jap\あああいいいうううえええおおおダウンロード\filename.txt" I used this code to decode the characters: String new_path = new…
waanderer
  • 157
  • 1
  • 1
  • 11
-1
votes
1 answer

Convert a file froM Shift-JIS to UTF8 No BOM without re-reading from disk

I am dealing with files in many formats, including Shift-JIS and UTF8 NoBOM. Using a bit of language knowledge, I can detect if the files are being interepeted correctly as UTF8 or ShiftJIS, but if I detect that the file is not of the type I read…
Michael Dorgan
  • 12,453
  • 3
  • 31
  • 61
-3
votes
1 answer

Regular expression for matching "Shift-JIS" string against given set of ranges

Problem Statement :- Let's call 0x8140~0x84BE, 0x889F~0x9872, 0x989F~0x9FFC, 0xE040~0xEAA4, 0x8740~0x879C, 0xED40~0xEEFC, 0xFA40~0xFC4B, 0xF040~0xF9FC as range. I want to validate if input String contains a kanji which is not in the the above…
1 2 3 4 5 6 7
8