Serazahr / ardb

Anarch Revolt Deck Builder
GNU General Public License v2.0
0 stars 0 forks source link

Issue exporting deck with comments in a foreign language #73

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. Create a deck. Name it and add in the comment part "éà". Try to export 
the deck under a text format.

There is an error message: "An error occured while saving."

ARDB 3.0.1 under Windows 7.

Seems like a lack of support of utf-8 or of the codepages.

Original issue reported on code.google.com by v.rip...@gmail.com on 25 May 2010 at 1:44

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have been able to reproduce this in 3.1.1 as well.  
I am currently running a Windows 7 system.
From the apperance of the code on the xml function(it supports utf-8) but not 
on the text function.
However from the looks of Windows 7, it looks like it may all depend on the 
font you are using to type in the special characters.   

In my case, in order to get it to save to an xml file and not give the error.  
I had to choose the System Font (Assuming your using Character map function).  
And then it saved.(I also edited the xml to check if it retained the utf-8 info 
and it did!)  However when it brought up the saved xml file.  It had changed 
the special characters to normal e and a.  The XML file open function changes 
to base ASCII type text.   

I recommend you save your UTF-8 text to an xml file.  Then hopefully we will 
able to right a full XML/UTF-8 output function for your saved xml info.  

Original comment by Woodruffr1973@gmail.com on 29 Jun 2010 at 5:02

GoogleCodeExporter commented 9 years ago
See Line 1395 on deckmodel.cpp
This may be where the problem needs to be fixed.

Original comment by Woodruffr1973@gmail.com on 29 Jun 2010 at 5:30

GoogleCodeExporter commented 9 years ago
Problem is that ardb under windows does not utf-8.

I've never got all the right bits to build correctly with utf-8 support.

Rob I think you do not see this as you have somehow managed to build utf-8 
versions of everything.

Original comment by graham.r...@gmail.com on 29 Jun 2010 at 8:03

GoogleCodeExporter commented 9 years ago
Yes I have built unicode of everything.
That may be true.  I will look into trying to fix the problem.  And pass on the 
information on how I get the build to work.
Been still hacking away and learning alot about the code.  Especially the 
database setup as well.

Original comment by Woodruffr1973@gmail.com on 30 Jun 2010 at 4:13