Skip to main content
Corvinus Corax
Inspiring
October 16, 2020
Question

UTF Encoding / Unicode in Script UI (ExtendScript)

  • October 16, 2020
  • 1 reply
  • 2078 views

I'm trying to spice up my Script UI Panels with some Unicode symbols. Some work great out of the box e.g. the "recycling" or "reload" Button \u21BA or most of the other arrows, some won't work at all. At the moment I have problems with this specific symbol:

 

Thats \u1F5D7 (overlap window symbol):

 

Should look like this:

 

Is there some kind of UTF Encoding I can set in my script like I would for a website with js?

Here are the codes for  I'm testing (and struggling) with: http://www.fileformat.info/info/unicode/char/1f5d7/index.htm

This topic has been closed for replies.

1 reply

Mylenium
Legend
October 16, 2020

Perhaps you're simply a victim of the typical general Unicode/ OpenType issues where so much hinges on which language settings and text composers are active because they are not core functions in the program code. Either way, I wouldn't trust this even if it worked and simply create this stuff as custom icons.

 

Mylenium

Corvinus Corax
Inspiring
October 16, 2020

Yeah, I agree with you all the way. I found something thats quite similar and works for me in the meantime (\u2750) but its weird why some work and some do not...

 

Thx as alway Mylenium for the fast response!

Justin Taylor-Hyper Brew
Community Expert
Community Expert
October 22, 2020

There's a workaround for this. I believe you have to put a string at the top of your document with a character that only appears in unicode, that way the parser knows to read your script in unicode.