Highlighted

UTF Encoding / Unicode in Script UI (ExtendScript)

Explorer ,
Oct 16, 2020

Copy link to clipboard

Copied

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):

UTF_Temp.jpg

 

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

TOPICS
How to, Scripting, SDK

Views

36

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

UTF Encoding / Unicode in Script UI (ExtendScript)

Explorer ,
Oct 16, 2020

Copy link to clipboard

Copied

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):

UTF_Temp.jpg

 

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

TOPICS
How to, Scripting, SDK

Views

37

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 16, 2020 0
Most Valuable Participant ,
Oct 16, 2020

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 16, 2020 1
Explorer ,
Oct 16, 2020

Copy link to clipboard

Copied

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!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 16, 2020 0
Adobe Community Professional ,
Oct 22, 2020

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 22, 2020 0