Questions tagged [unicode-string]
Use this tag for questions related to a Unicode String, such as UTF-8.
unicode-string
655
questions
0
votes
1
answer
85
views
Is it safe to convert emails with other characters than a-Z to lower case?
Any modern email service provider treats emails as case insensitive meaning that in my application I should allows users to log in both using [email protected] and [email protected].
In terms of the ...
-1
votes
3
answers
71
views
Convert mixed Unicode Numbers/Values/Strings (The whole Line contains also string) to a String [duplicate]
I have a line "Example: \u09b8\u09be\u09b0\u09cd\u09ac\u09bf\u09df\u09be\u09df \u0993\u09df\u09be\u09b0\u09cd\u0995\u09aa\u09be\u09b0\u09ae\u09bf\u099f \u09ad\u09bf\u09b8\u09be,"
What I want ...
0
votes
1
answer
78
views
Convert raw string (having escape characters) to unicode/utf8 string [duplicate]
In Python 3, how to convert an ASCII raw-string (that includes escape characters) into a proper unicode string?
As an example:
a = "ä" # note the umlaut
b = bytearray(...
1
vote
0
answers
69
views
Do surrogate pairs in JSON really have two interpretations?
The official JSON standard (ECMA-404, 2e, 2017-Dec) states the following about Unicode surrogate pairs:
However, whether a processor of JSON texts interprets such a surrogate pair as a single code ...
0
votes
0
answers
22
views
PHP - How to decode or parse emoji from unicode string? [duplicate]
In my PHP code, I receive user's emoji as this string "1f49c" from frontend app.
It should be as simple as echo "\u{1f49c}";, but my data is only this string: "1f49c"
How ...
1
vote
1
answer
135
views
How to add accents to letters in java
I am trying to combine alphabetical characters with accents in java. For example:
Combining the letter "e" (\u0065) with a combing grave accent (\u0300).
I have attempted numerous ways in ...
1
vote
0
answers
52
views
What's the difference between JavaScript's `String.slice()` method and PHP's `mb_substr` function? [duplicate]
I'm seeking to understand the distinctions between JavaScript's String.slice() method and PHP's mb_substr function. As a front-end developer, I encountered a challenging issue that affected our ...
0
votes
0
answers
35
views
WinForms TextBox doesn't reliably display non-spacing Unicode character that displays properly in a CheckedListBox
Currently, my code generates a list of strings from selected options that can contain the non-spacing Unicode "Combining Double Breve Below" and then displays those strings in a textbox. As ...
0
votes
1
answer
118
views
convert byte array to strings split by NUL character
I am sorry, if this is much of a dumb question. But I can't really figure this out, and I bet it has to be much simpler than I think.
I have a byte[] array which contains several Unicode Strings, each ...
0
votes
0
answers
42
views
Does Javascript have a way to parse numeric strings accounting for different global character sets?
Is there a way to validate/parse strings into integers when the characters used may use numeral character sets other than the standard Western 0-9?
Background: My Javascript application prompts users ...
1
vote
1
answer
94
views
Understanding Font header file used in MCU code
There is font file in MCU code and it is used to display the text on LED martrix display.
I want to understand the contains of below code
char widths, font data, first char, char count etc..
How the ...
1
vote
1
answer
107
views
Unicode (Devanagari) characters not showing up correctly in HTML dropdown and text-field tags
I have a HTML page in which I need to show a dropdown containing Devanagari characters.
The problem I am facing is that in the DOM the characters show up in expected manner but in the browser it doesn'...
1
vote
1
answer
43
views
Error compiling a boost qi parser to skip all comments and spaces in a php code string
Following my previous question, and applying the suggestions, I have created this boost qi spirit grammar to get only 'non-comments' from a piece of PHP code in the string contents:
#include <boost/...
0
votes
3
answers
47
views
Yet another Unicode preg_replace() question
I've read many posts that explain how to deal with Unicode characters, but none of the suggestions are working for me.
My php page reads a file that contains strings with high-order characters, e.g., &...