Bug 467408

Summary: UTF-8 multi byte characters wrong displayed and saved (e.g. german umlaut)
Product: [Applications] umbrello Reporter: Robby Klehm <rklehm>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED WORKSFORME    
Severity: critical CC: ralf.habacker, rklehm
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New object with umlauts
reopened model with umlauts
test case
Screenshot showing loaded test file on openSUSE Leap 15.5

Description Robby Klehm 2023-03-15 17:02:34 UTC
Created attachment 157310 [details]
New object with umlauts

SUMMARY
Umbrello opens the xmi model, but displays all umlaut (UTF-8 encoded) characters in names and comments wrong. It then saves them into the wrong format. On reopen the saved model it look worse. This is fatal with a workaround.


STEPS TO REPRODUCE
1. Add a class named "Üöä" and a comment "Üöä" to a new model
2. save it, and reopen the model
3. Check name and comment to see the issue

OBSERVED RESULT
The class name and comment is not correctly displayed (encoding issue).

EXPECTED RESULT
The objects name and comment should work with UFT-8 and displayed and saved correctly.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: gentoo
(available in About System)
KDE Plasma Version: kde-frameworks/plasma-5.96.0-r1
KDE Frameworks Version: 
Qt Version: dev-qt/qtcore-5.15.5-r3

ADDITIONAL INFORMATION
Please see the attached screenshots; Any advise would be great.
Comment 1 Robby Klehm 2023-03-15 17:03:09 UTC
Created attachment 157311 [details]
reopened model with umlauts
Comment 2 Ralf Habacker 2024-08-28 15:30:58 UTC
Created attachment 173047 [details]
test case

I created a class with umlauts in the class name, saved and reloaded it. The class name was shown as expected.
Comment 3 Ralf Habacker 2024-08-28 15:31:57 UTC
Created attachment 173048 [details]
Screenshot showing loaded test file on openSUSE Leap 15.5

KDE Frameworks 5.103.0
QT: 5.15.8
Comment 4 Ralf Habacker 2024-08-28 15:33:54 UTC
(In reply to Ralf Habacker from comment #3)
> Screenshot showing loaded test file on openSUSE Leap 15.5

I test this with umbrello version 2.39.0-461968b26 (Applications 24.08.0)
Comment 5 Ralf Habacker 2025-04-07 03:35:49 UTC
The issue cannot be reproduced on openSUSE Leap 15.6 with 25.03.90 and 25.07.70.