Unicode in string literals

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Unicode in string literals

Thomas Fischer
Hi list,
is there a way to escape unicode characters in string literals like '\u2013' for a enDash?

salute
Thomas
Reply | Threaded
Open this post in threaded view
|

Re: Unicode in string literals

Bert Freudenberg
On May 8, 2007, at 4:47 , Thomas Fischer wrote:

>
> Hi list,
> is there a way to escape unicode characters in string literals like  
> '\u2013'
> for a enDash?

No. The plan is to simply embed them in the string rather than  
changing the literal syntax. Works on some platforms (like on the Mac  
with wide fonts installed) but not in general yet.

You could add a message #u like

        '\u2013' u

that does the unescaping.

- Bert -


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners