Swift Special Unicode Characters in String Literals

Hadi.M

Am trying to do the experiment the following in Swift, as its written in apple developer documentation: let encircledLetter: Character = "i\u{20DD}"

But unfortunately the compiler is giving an error

\u escape sequence expects 4 hex digits to follow it 

I am totally new in Swift so I don't know if I missed something here

Unheilig

The problem is you are still using the Beta version of Xcode. Upgrade it to the latest one and the problem will go away.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Swift Special Unicode Characters in String Literals

From Dev

Special Characters in string literals

From Dev

Python to convert special unicode characters (like ♡) to their hexadecimal literals in a string (like 0x2661)

From Dev

Convert a string to unicode with special characters

From Dev

How to convert special characters in dictionary to unicode in swift

From Dev

How to convert special characters in a string to unicode?

From Dev

Is it ok to write the unicode characters inside string literals in C++

From Dev

Unicode string literals in VBA

From Dev

Check if string contains special characters in Swift

From Dev

How do I convert only the special characters of a String to unicode?

From Dev

Replace unicode formatted special characters

From Dev

Convert special Characters to Unicode Escape Characters Scala

From Dev

How to remove special characters from string in Swift 2?

From Dev

Special characters in a string [JAVA]

From Dev

String is adding special characters

From Dev

Split string by special characters '\.'

From Dev

Check for special characters in string

From Dev

Count special characters in a string

From Dev

Tokenizing special characters in a string

From Dev

Replaceable string with special characters

From Dev

Replacing special characters in a string

From Java

Replace Unicode Characters in a String

From Dev

Remove Unicode characters in a String

From Dev

Getting the unicode characters of a string

From Dev

Unicode characters in string

From Dev

Unicode characters in string

From Dev

Converting string to Unicode characters

From Dev

Replace all unicode literals in string with corresponding symbol

From Dev

C++: portability of Unicode string literals

Related Related

HotTag

Archive