[IGN-5692]Designer showing °C as °C in Perspective Label in Embedded View

Interestingly, the two strings are different.

Expression binding:

'°C'

produces u'\n\xb0C'

but binding:

char(0186) + 'C'

produces u'\n\xbaC'

ºC °C
You can even see the difference here. The first (char(0186)) is bolder, while Alt+0186 is lighter

"Symbol Name: Degree Sign"

"Symbol Name: Masculine Ordinal Indicator"

Oh no! I've been using the wrong little o everywhere for the last 12 years :dizzy_face:

But at least it's masculine.

3 Likes

Haha. It still produces the same thing though with the  at the start if I just do '°C' though :frowning:

very weird why it happens in embeded views only xd
maybe it uses a different parser? xd

2 Likes

I guess for now I'll do the weird char(176) method :confused:
image
much better!

Yea I just replaced my arrows with char(9660) and char(9658) too.
Not that it changes much, as the browser rendered them properly, but...

yeah it's a bit gross, but it's better than looking at strange characters all day and having the labels spill onto the next line because of them!

Possibly the same root cause as this other thread:

I can see Nick is on Windows; @pascal.fragnoud, are you also on Windows?

1 Like

i got this too and im on windows

The designer is. Not sure if relevant, but ignition is installed on debian.

All Chinese characters from binding in embedded view are broken.

That would be super annoying!

If any of you can try out the workaround(s) here, that would be helpful:

I tried both JVM Arguments and ignition.conf, they didn't work.

1 Like

A work around is to pass in the Unicode to the embedded view and then reference that in your view.

image

1 Like

Thanks for trying. I've kicked the internal ticket's priority up, but there's not much more I can do.

Still seeing the same issue in 8.1.21 using label text bound to tag (for value) + view parameter (for units).

In designer the view looks OK on its own.

When embedded in another view using either FlexRepeater or EmbeddedView and viewed within the Designer I see the same issue.

When viewing all the views above in Perspective (browser) they render OK.

Original view (Designer):
image

In Flex Repeater/Embedded View (Designer):
image

Try converting them to unicode before passing them to the view.
I've had this happen in popups, passing literals with accents to the popup view made a mess. Adding a little u in front of it fixed the issue. So you could try converting to unicode.

You could maybe do it in the view itself, who knows ?