• Welcome to the new forum! We upgraded our forum software with a host of new boards, capabilities and features. It is also more secure.
    Jump in and join the conversation! You can learn more about the upgrade and new features here.

wxWidgets Debug Alert on XML import

dannowatts

Apprentice
Joined
Mar 1, 2016
Messages
4
Reaction score
0
hello, i tried importing a beer XML file (that was previously exported and saved from brew toad before they shut down) and received the following error:

"wxWidgets Debug Alert
../src/common/strconv.cpp(1188): assert "Assert failure" failed in FromWChar(): trying to encode undefined Unicode character" and then it has a call stack.

i am happy to include the beer xml file (if there's an appropriate email i can send it to) that i'm trying to import to help with debugging the issue (maybe a parsing issue with illegal/hidden/non-unicode standard characters?)
 

Attachments

  • Screen Shot 2019-05-01 at 3.25.08 PM.png
    Screen Shot 2019-05-01 at 3.25.08 PM.png
    615.6 KB · Views: 311
I personally have no issue opening .xml files, you can attach the file here and i can see if i can open it?
 
dannowatts said:
...
i am happy to include the beer xml file (if there's an appropriate email i can send it to)...

Use the "Attachments and other options" too just under the text box where you type your message.
 
i've spoken with brad smith, but wanted to follow up on my post here:
i think i may have solved the issue on my end for being able to import these beer xml's, and i'm wanting to share with everyone so it could hopefully help others encountering a similar issue & cause!

it seems as if there were some non-ascii characters in the beer xml's that needed to be corrected, attached are some screenshots showing the offending characters highlighted, and then the corrections that resolved the issue inside of beer smith.

the "Chateau Biscuit" ones are pretty easy to see and recognize visually as non-ascii characters.

but victory malt one i never would've seen by looking.
i was able to find and replace instances of offenders by doing a regex search for non-ascii characters (in my favorite ide, atom) using
Code:
[^[:ascii:]]

the suggestion i offered to brad was maybe beer smith could have some sort of "diacritics sanitation" before import? but for anyone coming here to this post, you could implement the same searching of your beer xml files before attempting to import them.
 

Attachments

  • chateau biscuit 01 - before.png
    chateau biscuit 01 - before.png
    190.7 KB · Views: 267
  • chateau biscuit 02 - after.png
    chateau biscuit 02 - after.png
    188.9 KB · Views: 272
  • victory malt 01 - before.png
    victory malt 01 - before.png
    186.4 KB · Views: 244
  • victory malt 02 - after.png
    victory malt 02 - after.png
    186.2 KB · Views: 263
Back
Top