Questions tagged [double-byte]

40 questions
33
votes
6 answers

How to find whether a particular string has unicode characters (esp. Double Byte characters)

To be more precise, I need to know whether (and if possible, how) I can find whether a given string has double byte characters or not. Basically, I need to open a pop-up to display a given text which can contain double byte characters, like Chinese…
Jay
  • 399
  • 1
  • 3
  • 7
7
votes
1 answer

How to compare and convert emoji characters in C#

I am trying to figure out how to check if a string contains a specfic emoji. For example, look at the following two emoji: Bicyclist: http://unicode.org/emoji/charts/full-emoji-list.html#1f6b4 US Flag:…
tbraun
  • 115
  • 3
  • 4
6
votes
2 answers

C++ ShiftJIS to UTF8 conversion

I need to convert Doublebyte characters. In my special case Shift-Jis into something better to handle, preferably with standard C++. the following Question ended up without a workaround: Doublebyte encodings on MSVC (std::codecvt): Lead bytes not…
bob
  • 155
  • 1
  • 13
4
votes
2 answers

Convert (doublebyte) string to Hex

Let's say I have the word "Russian" written in Cyrillic. This is would be the quivalent of the following in Hex: Русский My question is: how do I write a function which will go from "Russian" in Cyrillic to…
Adrien Hingert
  • 1,362
  • 5
  • 25
  • 49
4
votes
1 answer

Efficient Replacement of Double-Byte Numerals to Single-Byte Numerals

I am currently working on a website that is for Japan and by default, their keyboards use double-byte numerals (\uFF10-\uFF19) and this is causing an issue with validation as well as down the flow when we pass the data on to other services. I am…
Greg Yung
  • 103
  • 6
3
votes
0 answers

What is the max length for an Android app title in Chinese?

I know that the max. character length for an application title in Google Play Store is 30 characters, see here and here. However, how does this apply to languages that use double-byte characters, like Chinese? Would that be 30 characters as well, or…
Ellie
  • 31
  • 1
3
votes
3 answers

How to print characters from double byte character sets

Take a look at how it is possible to output all of the characters from a single byte character set printable or not. The output file will contain Japanese characters such as チホヤツセ. Encoding enc = Encoding.GetEncoding("shift_jis"); byte[] m_bytes =…
Jake
  • 387
  • 1
  • 14
3
votes
2 answers

HTML Diff tool API

I'm looking for an api that will visually show html difference for both structure, characters/words, and style. This tool must also support double byte characters and be flexible enough for me to add it to my existing website to show the results of…
jnoreiga
  • 2,028
  • 19
  • 25
2
votes
2 answers

MySQL: char_length(), wrong value for Russian

I am using char_length() to measure the size of "Русский": strangely, instead of telling me that it's 7 chars, it tells me there are 14. Interestingly if the query is simply... SELECT CHAR_LENGTH('Русский') ...the answer is correct. However if I…
Adrien Hingert
  • 1,362
  • 5
  • 25
  • 49
2
votes
2 answers

What are all the languages use double byte characters?

Can anyone point me to the list of languages that use double byte characters? Thanks,
svv
  • 23
  • 1
  • 1
  • 3
2
votes
1 answer

Allow double-byte space in Regex

I have a regex on my C# code to check if the name that end user entered is valid, my regex deny double-byte characters like double-byte space. The double-byte space like the space between quotation “ “ . My regex: @"^[\p{L}\p{M}\p{N}' \.\-]+$". I'm…
2
votes
1 answer

Double Byte Character File Names Not Displayed Correctly

I have a pdf file named "ロケールストリングのキャッシュ最適化-v3-20160202_1047.pdf". On using google tag manager to get the file name from the download URL, I get the value as "%E4%BE%9B%E7%B5%A6%E8%A8%88%E7%94%BB-v3-20160202_1047.pdf". I'm using javascript to fetch…
1
vote
3 answers

How to identified given string is double byte characterset using java?

I want to Identify given string is double byte character set or not, using java? Thanks
Sameek Mishra
  • 8,234
  • 28
  • 86
  • 113
1
vote
0 answers

Delphi Firemonkey FMX Display double byte strings from MySQL

I'm trying to display double-byte characters in my firemonkey app - windows & android. Query1.SQL.Text:= 'SELECT ITEM_NAME_KR FROM items WHERE ItemID=1'; Query1.Open; showmessage( Query1.fieldbyname('ITEM_NAME_KR').AsString ); Edit1.Text :=…
Peter W.
  • 103
  • 6
1
vote
1 answer

Can PostScript DocumentMedia section have Unicode chars

So this is the definition of the Document media section "%%DocumentMedia: ::= (Tag name of the media) ::= ::= (Width in PostScript units) …
grobartn
  • 3,000
  • 9
  • 35
  • 52
1
2 3