I tried to change the database collation to utf8-mb4 and utf16_bin, still did not work with me !! change the table unicode and db unicode
This UTF-8 encoded HTML is rendered correctly in a UIWebView in iOS 10, but only text shown and all emojies shown as ????????????????
I am using this db to post articles and view them on IOS and android apps
DB photo
only this emoji ⚽ shown good! what do I need by a ball!!
Also, inorder to create a literal string with the escape character "\" the escape character must be escaped: "\". See Stackoverflow question discussing emojis in uitextviews and uilabels.
Related
If you try **b.**a on https://spec.commonmark.org/dingus/, you would see its b. is not bolded.
However, if you just omit the last a, it works.
What is the CommonMark format to bold it correctly (that is bolded a., followed by unbolded b)?
The solution to format the text correctly in CommonMark.
According to section 6.2 of the CommonMark specification, that behaviour is by design:
A delimiter run is either a sequence of one or more * characters [...]
A right-flanking delimiter run is a delimiter run that is (1) not preceded by Unicode whitespace, and either (2a) not preceded by a Unicode punctuation character, or (2b) preceded by a Unicode punctuation character and followed by Unicode whitespace or a Unicode punctuation character.
You can get the desired visual appearance with **b.**a, where is the HTML entity "zero-width joiner", thus:
**b.**a
...and we've just found a bug in the rendering here on Stack Overflow. In edit mode, the preview shows it correctly as
I need to use non printable characters in a String constant, but Xcode shows error in my swift file as "Unprintable ASCII character found in source file"
My Simple code is below
let unprintableCharInString = "12345"
You could see the non printable characters at prefix and suffix of above string value, If you just copy paste my above code in Sublime text or some other text editor which supports to show Unprintable characters.
But if you paste the above code in Xcode swift file, you will see the compiler error "Unprintable ASCII character found in source file".
And if I use the same string in Objective C as like below, there is no error.
NSString *unprintableCharInString = #"12345";
So how to use non printable characters in Swift string variable directly as like above Objective C code?
Note:
As the body text box trims those non printable chars while saving my question, you can't see those chars if you copy paste the code from here. Instead of that try to copy the above code by editing my question. So you can get those chars in Body text box during edit.
Screenshot from Sublime Text editor:
Thanks in advance!
To display space characters you can use XCode Editor > Show Invisibles. But I'm not really sure will it help in your case.
Based on the #Alladinian's suggestion in Comment above,
Answer is: We need to add the unprintable ASCII characters manually in source code while declaring string value.
Example:
let unprintableCharInString = "\u{02}123\u{1A}"
Here \u{02} is Hex value of "START OF TEXT (STX)" and \u{1A} is Hex value of "SUBSTITUTE (SUB)"
Thanks #Alladinian!
Our application automatically modifies the layout of Arabic text when it is followed by a bracket and I was wondering whether this was the correct behaviour or not?
The application shows items in the following format:
[ID of structure](version)
So version 1.5 of the English structure "stackoverflow" would be displayed as:
stackoverflow(1.5)
Note: the brackets need to be displayed. There is no space between the ID and the first bracket. The brackets simply encompass the version. The brackets could have been any character but it's far too late to switch to a different character now!
This works fine for left to right languages, but for Arabic languages the structures appear in the form:
ستاكوفيرفلوو(1.0)
I am not an Arabic speaker and I need to know if this is actually correct. Is the Arabic format the equivalent of the English format or has something gone horribly wrong?
The text in Arabic should be shown like:
ستاكوفيرفلوو(1.0)
I added the html entity of RLM / Right-to-left Mark in order to fix the text. You should do so if your application doesn't support Bidi native-ly. You can add the RLM by these ways:
HTML Entity (decimal)
HTML Entity (hex)
HTML Entity (named)
How to type in Microsoft Windows Alt +200F
UTF-8 (hex) 0xE2 0x80 0x8F (e2808f)
UTF-8 (binary) 11100010:10000000:10001111
UTF-16 (hex) 0x200F (200f)
UTF-16 (decimal) 8,207
UTF-32 (hex) 0x0000200F (200f)
UTF-32 (decimal) 8,207
C/C++/Java source code "\u200F"
Python source code u"\u200F"
(note: StackOverflow right transliteration is ستاك-أوفرفلو)
I'm currently using an star/asterisk character to separate syllables in a vocabulary quiz program. But, I would prefer to use a black dot that sits about midway between the top and bottom of the line height. So, my questions are
1) How do I find the unicode for this character?
edit: from wikipedia, it looks like the character might be "middle dot", U+00B7
2) How do I display it?
You can just escape unicode characters inside NSString like this:
NSString *string = #"Hi \u00B7 there!";
Here's the great website to reference Unicode codes and how to place them inside programming languages (encodings section).
Simply copy and paste this " • " or use option+8
I am having issues with the special CSV interpreter (no idea what its called) on iPad mobile browser.
iPad appears to reserve the character " as reserved or special. When this character appears the string is treated as a literal instead of seperated as a CSV.
INPUT:
1111,64-1111-11,Some Tool 12", 112233
Give the input above, the CSV mobile-safari display shows ([] represents a column)
[1111] [64-1111-11] [Some Tool 12, 112233]
Note that the " is missing. Also note that 112233 is not in its own column like it should be.
Question 2:
How can I get the CSV display tool in safari to not treat a six digit number as a phone number?
1234567
Shows up as a hyperlink and asks to "Add Contact" when I click it. I do not want the hyperlink.
UPDATE
iPad is ignoring the escape character (or backslash is not the escape character) for double quotes in CSV files. I am looking at the hex version of the file and I have
\" or 5C 22 (in hex with UTF-8 encoding).
Unfortuntely, the iPad displays the backslash and still treats " as a special character, thereby corrupting my data formatting. Anybody know how I can possibly use " on iPad CSV?
With regards the quotes, have you tried escaping them in the output?
EDIT: conventional escaping doesn't work for CSV files, my apologies. Most specifications state the following:
Fields that contain a special character (comma, newline, or double quote), must be enclosed in double quotes.
So, testing this on your CSV snippet, a file formatted like this:
1111,64-1111-11,"Some Tool 12""", 112233
or even like this:
1111,64-1111-11,Some Tool 12"""", 112233
… opens in Mobile Safari OK. How good or bad that looks in Excel you'd need to check.
Moving to the second issue, to prevent Mobile Safari from presenting numbers as phone numbers, add this to your page's head element:
<meta name="format-detection" content="telephone=no" />