Bug: UTF-8 encoding in Github repo, issue #315

Nothing broken over here. @Grace? How’s it look for you?

2 Likes

Sorry, only seeing this now. Having power & water issues again.

image

The % is still looking the same:

image

I’m still wondering if it’s not the MS Visual C++, since this only started when I had to download and install that along with the 1st build.

Something else that happens from time to time that I can’t quite put my finger on, is that it seems to almost hang while doing certain tasks, just long enough to let me think ‘What now?’ but then it goes on. I haven’t been able to quite predict which tasks yet.

2 Likes

@grace what are your language & label preferences?

1 Like

@grace Are you seeing character problems with point names?

1 Like

Sorry about the water and electricy problems. Hope you’re okay! Stay safe!

1 Like

Hi @slspencer GUI language is English Label language is American English Font is now Arial - I tested a few others but the remains "Å "

No, the points are fine.

image

Thank you :slight_smile:

1 Like

So to recap the current state of this issue:

  • Character encoding in the canvas is working.
  • Character encoding in the GUI executable is not working.
1 Like

This works: Encoding characters external to the executable, eg point names read from the XML pattern file:
image

This works: Encoding characters external to the executable, eg file names read from the operating system:
image

This doesn’t work: Encoding some internal characters within the executable. The degree symbol ° displays as  °
image

Are there other instances where the character display isn’t working?

2 Likes

And is this really an encoding problem, or is ° in the code?

1 Like

On my Linux laptop, the angle symbol displays correctly. image

2 Likes

None that I’ve noticed.

It doesn’t matter where there is a ° symbol, it shows as  °

image

image

image

image

image

I don’t know where else to look :slight_smile:

1 Like

Maybe there’s something here that explains recent problems:

The section on ICU and Windows on Qt website:

Building Qt 5 from Git - Qt Wiki

2 Likes

I have solved the mystery of degree symbol display - as explained here:

2 Likes

It’s wasn’t using MSVC to build… that’s why there was no issue. It’s also why I never had a problem up until I was forced to install Visual Studio to build with Qt6 instead of building with GCC OR downloaded a Windows build from Github. It’s also one of those stupid issues where you read information that just leads you down another rabbit hole without any fix. It wasn’t until I built with the MSVC kit and noticed the error pop up that I put 2 and 2 together to realize it’s MSVC related.

3 Likes

Excellent! This was a small but highly annoying problem. Thank you!!!

1 Like

Thought of another place it’s an issue. If a user selects certain other “Label” languages - that is the language that displays the point name text… there’s the same issue with some of the alphabet chars used. For example when choosing Deutsch here’s the incorrect result on the left, with the fix on the right.

chars

I’ve got the Duetsch string fixed, just have to fix the remainder of the languages.

3 Likes

All done. The last 4 (cyrillic) languages were tedius - it took 1/2 the day to look up all the char codes and convert to octal to reassemble the base label strings. Whew.

3 Likes

Wow! @Douglas. You’re a star. Thank you very much.

1 Like

Just fyi: The fix is in tomorrows weekly release, and it affected only windows users

2 Likes

Thank you very much, @csett86. You’re a star, too :star_struck:

1 Like