DoUML / douml

DoUML project: fork of BoUML 4.22
74 stars 35 forks source link

Non latin1 string support is added #173

Closed habipyesilyurt closed 8 years ago

habipyesilyurt commented 8 years ago

UTF-8 (which covers all the modern characters) is used for saving/reading of project files.

mobius3 commented 8 years ago

By useless you mean it does nothing or what it does is not necessary anymore?

gilbertoca commented 8 years ago

Hi, I have sample project that can be used to test this feature. In the docs folder there are two sub projects: bouml.pt_br bouml

habipyesilyurt commented 8 years ago

I think it is not necessary. Usage of codec setting is generally via toUnicode and fromUnicode operations. But QString is holding text as unicode already. So toUnicode and fromUnicode operations should be removed carefully. But it needs a double check :)

habipyesilyurt commented 8 years ago

@gilbertoca sample projects seems to be saved using iso8859-1. So, character "í" is parsed wrongly. If it would be saved using codec UTF-8, this character would also displayed correctly.

gilbertoca commented 8 years ago

Using the 1.0.8 version. Set environment to iso8859-1 I can open the project(and see) but can't use the Latin1 characters. screenshot_20160226_113240 Set environment to UTF-8 I can open the project(see) and change the Latin1 characters. After save, close the project and open it again the Latin1 characters are messy/malformed screenshot_20160226_114206

I have not time now to compile the master and test you changes, maybe next week. Thanks for your contributions!