Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
35 views

Render Chinese characters correctly in iOS

I have certain Chinese text in my app that I want to make sure appears in regular script. It currently renders like this on the phone: However, I want it to render like this so that it looks more ...
joudan's user avatar
  • 99
0 votes
0 answers
79 views

Glyph errors in tick labels when using shap values to analysis my model

I am using shap package in python to recreate some graphs for my model. One of them is the waterfall chart, which is from the manual I followed generated using the following code(the complete code is ...
Stockard's user avatar
0 votes
1 answer
342 views

Can't display Chinese characters in R plot

Chinese characters don't display in a basic R plot: plot(c(1,2), c(1,3), xlab = "基本", ylab = "收入") I tried adding family = 'Arial Unicode MS' to plot, and I tried setting Sys....
bixiou's user avatar
  • 140
-3 votes
1 answer
55 views

Chinese character displaying wrongly/differently on Windows

I notice the word 门 is displaying differently when it is being typed on certain applications such as the search bar in Chrome。 Some website are also showing the wrong character. [ This only happens in ...
TypicalBeginner's user avatar
-1 votes
1 answer
127 views

Python, how to rename file with chinese characters

Can't rename file with chinese characters I tried this os.rename(file, file.replace(os.path.basename(file),"") + f"{str(filename)}.{filemenu.get()}") and this shutil.move(file, ...
  farge_goty's user avatar
0 votes
1 answer
918 views

How to detect if Chinese text contains simplified or traditional characters? [duplicate]

What would be a reliable way in Java to detect if a Chinese Unicode string contains Chinese simplified characters or traditional characters? The assumption is that characters that are common for both ...
ccpizza's user avatar
  • 31.1k
0 votes
0 answers
62 views

Is timeStyle.long and .full broken, or have I done something wrong?

I am making an app in swift using Swift UI which uses several different date to string functions and they all seem to work ok for all the locales I've checked besides this one. This works for my home ...
miothethis's user avatar
1 vote
1 answer
61 views

When using logging in Python, the locale is set, and the log cannot be obtained

I'm trying to use logging module in Python. It works well expect when I set the loacle. Here is the sample code(python3.9): import logging import locale from time import asctime logging.basicConfig( ...
Xtpacz's user avatar
  • 11
2 votes
1 answer
200 views

How to store the Chinese strings correctly?

In Visual Studio 2022, using [tag:C++ 17]. I am trying to use a std::map to store Chinese strings: std::map<std::string, std::string> translation; translation["Type"] = "类型"; ...
keen's user avatar
  • 83
0 votes
1 answer
282 views

Strapi Navigation Internationalization: can’t save Chinese characters

I enabled internationalization in Strapi and in the Navigation Plugin. Everything works fine, until when I change “Home” to Chinese characters and click the Save button, nothing happens, but when I ...
ZackChim's user avatar
  • 153
1 vote
1 answer
301 views

Correct display of Currency TWD

I'm not native to Taiwan, nor do I have any knowledge of Taiwanese Mandarin. Hence it could be that all is as intended. My observation: NumberFormat format = NumberFormat.getCurrencyInstance(Locale....
Dennis Rippinger's user avatar
0 votes
1 answer
31 views

Can `writing-mode: horizontal-tb;` be used per character?

The caron ˇ character in the screenshot is rotated due to it not being recognized as Chinese character, just like the word Prologue in the screenshot is rotated too ˇ is rotated, hence it looks like &...
Michael Buen's user avatar
  • 39.3k
0 votes
1 answer
149 views

How to implement a specific parser (Chinese) for PostgreSQL full text search in Django?

I want to implement PostgreSQL full text search in Django 4.0. for Chinese language. The question already arise in 2010 but there wasn't any suitable solution and they had to move to SQL Server. In ...
User981636's user avatar
  • 3,573
1 vote
0 answers
281 views

Messed support for Intl.DateTimeFormat with Chinese Calendar

new Intl.DateTimeFormat('zh-CN-u-ca-chinese', { dateStyle: 'full' }).format(1680537600000) The above code outputs 0040闰0214 12:00 上午 in Firefox, 2023癸卯年闰二月十四星期二 in Chrome/node/deno, 2023癸卯年闰二月14星期二 ...
swwind's user avatar
  • 165
1 vote
1 answer
1k views

jsPDF use Chinese fonts to build PDF from HTML

I am using WordPress Eventin plugin which embedded jsPDF. I have successfully added Chinese fonts SimHei.ttf to jsPDF like that: const jsPDF = window.jspdf.jsPDF; const doc = new jsPDF("p", &...
Kenny Shum's user avatar
0 votes
1 answer
538 views

How to define aliases of locales in typesafe-i18n?

Motivation Chinese language has historically multiple language codes (RFC 5646 with ISO-639 zh). Practically, the most frequently used ones are zh-CN (for Simplified Hanzi Script of Chinese Mandarin ...
mkpoli's user avatar
  • 47
0 votes
2 answers
545 views

Encoding Chinese characters to open JSON file in python

I am unable to open a json file containing chinese and english characters. I have tried using- with open('.//train//chess.json') as f: d = json.load(f, encoding = "UTF-8") I have also ...
Madhuresh's user avatar
3 votes
1 answer
724 views

Chinese characters with multiple unicode representations

Some Chinese characters have multiple Unicode representations. For example, although the characters 金 and 金 are usually rendered the same, they actually have different underlying unicodes (see https://...
Tim Mak's user avatar
  • 317
1 vote
1 answer
2k views

Converting calendar dates to Chinese lunar dates in Google Sheets

I'm trying to convert calendar dates to Chinese lunar dates in google sheets. But I have difficulties. It is easy to do in excel by using formula: `=TEXT(A2; "[$-130000]dd.mm.yy")` But it doesn'...
stereos's user avatar
  • 11
1 vote
0 answers
54 views

MSSQL record and display all languages in table including English, Chinese and Arabic [duplicate]

The service on my Windows Server using MS-SQL is using a variety of languages but non-English characters like Chinese and Arabic are recorded as ?????????????? The database fields are set to [nvarchar]...
Kendo's user avatar
  • 206
1 vote
0 answers
248 views

Powershell v5 Get-Content (Chinese file names) amending. Filename/path not found or excluded

I have been trying to figure this out for the past hour. I have Chinese named filenames, however im using powershell version: 5.1.22000.653. If I change it to test.lua it works just fine. However, ...
Lasaraths's user avatar
1 vote
1 answer
450 views

Google speech recognizer for Traditional Chinese text

I want to output the speech to traditional chinese but it output to simplify chinese instead. My codes: Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(...
len's user avatar
  • 394
1 vote
1 answer
137 views

Cannot identify Chinese character in word2vec

I am a new comer on word embedding and write a simple program to capture the message from my whatsapp to try the word2vec function in R. Everything works well and I can successfully generate the ...
WO PING WONG's user avatar
1 vote
1 answer
287 views

Content-length body with mixed latin and chinese characters

I am defining the Content-Length of an HTTP request but because sometimes it might contain chinese characters when it gets to the response side of things, it gets truncated. I have been trying to get ...
Gabs's user avatar
  • 167
1 vote
0 answers
78 views

Unable to parse input date containing abbreviated asian components using DateTimeFormatter

I'm trying to parse a date string to LocalDate or LocalDateTime (actually any Temporal object), which contains asian abbreviated parts. When I provide a valid abbreviated chinese component(in example ...
Kiril Raykov's user avatar
3 votes
1 answer
846 views

How to Check If The Rune is Chinese Punctuation Character in Go

For Chinese punctuation chars like ~ , 。, how to detect via Go? I tried with range table of package unicode like the code below, but Han doesn't include those punctuation chars. Can you please tell me ...
Yunguan Ting's user avatar
0 votes
0 answers
204 views

The comma and dot (,.) are not getting vertical centrally aligned in traditional Chinese

My application is supporting the Traditional Chinese (zh-Hant-TW) language, I am facing one issue while converting the date to specific format the comma and dot are not getting aligned on vertically ...
Naresh's user avatar
  • 945
0 votes
1 answer
326 views

How to include Simplified Chinese - Mandarin and Cantonese resource locale in Android Studio

I have a requirement to support Simplified Chinese - Mandarin(Hans) and Cantonese(yue) but while trying to add the above locale in Android studio , I'm not getting the exact region specifier. In ...
Kaviyarasan M's user avatar
0 votes
2 answers
426 views

How do I use system("chcp 936") in my dialog based project?

The code below is supposed to convert a wstring "!" to a string and output it, setlocale(LC_ALL, "Chinese_China.936"); //system("chcp 936"); std::...
Zhang's user avatar
  • 3,320
5 votes
1 answer
6k views

What is the typical Chinese language code for the Accept-Language header?

Unfortunately, I have no way to check this personally, so I wanted to ask the community about it. According to RFC 5646, Chinese can have the following representation: zh-Hans for Simplified Chinese, ...
fallincode's user avatar
0 votes
0 answers
110 views

Unicode range of Chinese characters (minimum viable)

I'm making a game that needs to be translated into Chinese. I'm making custom bitmap fonts for Chinese. I need unicode ranges for the Chinese "alphabet". I want to compact this as much as ...
user avatar
1 vote
0 answers
117 views

How can you Internationalize Chrome Extension for Cantonese (Hong Kong)?

How can you Internationalize Chrome Extension for Cantonese (Hong Kong)? Internationalizing Your App - Chrome Developers lists Locale Codes that it says you can localize your app in. But for Chinese ...
Jeff Baker's user avatar
  • 1,492
0 votes
1 answer
713 views

How can I show "$" instead of "US$" in NSnumberFormatter? [duplicate]

I used below code for conversion from NSnumber to currency with locale. let price = 12.34 as NSNumber let formatter = NumberFormatter() formatter.numberStyle = .currency formatter.currencyCode = "...
bAthi's user avatar
  • 361
0 votes
1 answer
668 views

Edge browser Speech Synthesis stop working after call speak with some empty paragraph text using Xiaoxiao voice

I'm using SpeechSynthesis APIs on Microsoft Edge browser. But something went wrong... Here is what I have got so far (already minimized to what can reproduce the result) I had Chinese language pack ...
tsh's user avatar
  • 4,620
0 votes
2 answers
2k views

C programming language using locale.h to print UTF-8 characters

I want to print UTF-8 characters with C programming language. I've tried this but failed: #include<stdio.h> #include<stdlib.h> #include<locale.h> #include<wchar.h> int main(){ ...
wjhtwx's user avatar
  • 23
1 vote
1 answer
4k views

Storing Chinese Characters in mysql

Im trying to store chinese characters to mysql database but am unable to. Changed characterset for the table to utf8 and utf8mb4 Table looks something like this id bigint(20) NO PRI ...
Aninda Choudhary's user avatar
0 votes
1 answer
2k views

How to check if a cell value is Chinese text in Excel

I have a list of cells which contain the first name of users: Amy, Jim, 梅, 明, ธนกาญจน์, Андрей, etc. From the name, I would like to determine if a user is Chinese. Does anyone know if there is any ...
SoftTimur's user avatar
  • 5,304
0 votes
1 answer
398 views

Why wordcloud libraries can't use stopwords to block Chinese characters in python

Today, I want to use WordCloud to create a word cloud, but the biggest word is meanless,"的",like "is" in English. I want to remove it, so I create "stopwords" to deal ...
hlame_mastar's user avatar
1 vote
0 answers
68 views

I wanna use sscanf to get something from a string

The row string is Chinese,e.g. "九张".And the regular expression is "%[^张]"; Code segment:(mingw-32 ,windows10) char szTemp[64] = {0}; sscanf("九张","%[^张]",...
Johnson Chan's user avatar
2 votes
1 answer
295 views

Why does Session.getActiveUserLocale() return an empty string when Google language is set to Chinese?

I'm using Session.getActiveUserLocale() to get the user's locale in a Google Calendar Workspace add-on (runtimeVersion: V8) and it works perfectly for every language I've tested - except for Chinese (...
jazzwhistle's user avatar
0 votes
1 answer
1k views

be chinese fonts in Flutter iOS app set Japanese in MaterialApp

I have an issue that the text in the iOS app display in Chinese font. so I tried three patterns. But it doesn't work only in the build iOS app. In the iOS simulator, all patterns work. How can I ...
Ryo Moro's user avatar
0 votes
1 answer
529 views

Chinese open bracket with space - single char

Im working regexes over chinese language I noticed there is a bracket with space Chinese char ')' notice this isn't a ')'+whitespace (one delete stroke will delete it). What is the opening space+'(' ...
yoty66's user avatar
  • 604
0 votes
0 answers
942 views

How to make matplotlib display Chinese correctly

How to make matplotlib display Chinese correctly. Thank you . import numpy as np from matplotlib import pyplot as plt import matplotlib from pylab import mpl import pymysql matplotlib.rcParams ['...
Stream_'s user avatar
  • 13
0 votes
0 answers
280 views

Chinese character in environ['PATH'] cannot be recognized by cmake

Currently I'm trying to add a toolchain path into os.environ['PATH'] to build my project. The path contains some Chinese chars and the cmake program just cannot recognize the path properly. Everything ...
Seraph's user avatar
  • 307
0 votes
1 answer
1k views

How to read Chinese characters in text file using `readLines`

I want to read text in one line at a time. The file is found in an online repository. I am showing a small sample. t.file = "http://md5.mshaffer.com/WSU_STATS419/stackoverflow/chinese/test.txt&...
mshaffer's user avatar
  • 973
1 vote
3 answers
2k views

Reading a file that contains chinese characters (C++)

I got issues reading a file that contains chinese characters. I know that the encoding of the file is Big5. Here is my example file (test.txt), I can't include it here because of the chinese ...
Haruka's user avatar
  • 13
0 votes
1 answer
165 views

How to identify the tones in Chinese text?

Is there a programmatic way to identify the tones in Chinese text? For an input string like 苹果 I need to extract the tones as 2 and 3 as it would be indicated in the pinyin transliteration píng guǒ or ...
ccpizza's user avatar
  • 31.1k
0 votes
1 answer
417 views

How to search Chinese characters in Vim quickly?

I want to convert all string in Chinese to i18n, and want to search them all.
Cui Mingda's user avatar
0 votes
0 answers
2k views

How do I detect Chinese characters using REGEX or a SQL query?

I'd like to detect Chinese characters in a redshift postgresql database using a SQL query. An acceptable answer can include regex since I can use regexp_instr. I think that this will detect non-...
Cauder's user avatar
  • 2,487
0 votes
1 answer
530 views

Build Qt from source so that it accepts Chinese input

I build Qt from source on Debian buster but now I cannot input Chinese on a QLineEdit. Chinese input works for all other applications execpt the one I build with that Qt I build from source. If I ...
KcFnMi's user avatar
  • 6,099

1
2 3 4 5
8