Invalid strings

I know this is probably a noob question but I have input fields in my app. If someone types an invalid character the app breaks on the invalid string assert. Here is an example of an input that would kill it.


í
 

I know it's not ascii. Assume it's UTF8. What is the best way to handle this kind of input?

https://www.juce.com/api/classTextEditor.html#af101f034f249b577345b948d4d3db21c

TextEditor::setInputRestrictions()

Rail

Thanks. I had not seen that.

But what if I want to allow all UTF8 characters?

 

Anything that you type into a text editor should be handled internally with no issues, so an assertion sounds like our bug to me.. What OS is this?

I just figured it out. Juce was fine handling the data. I was storing it in SQLite. When I went to get it back out it was hittingthe assert. I added CharPointer_UTF8(q.getStringField(1)) whenever I pull a string out of the db and it now works fine. Thanks.