Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: ollydbg on November 05, 2022, 03:39:59 am

Title: How to find the illegal chars when you failed to post(Database Error)
Post by: ollydbg on November 05, 2022, 03:39:59 am
Some times, I got failed to post a message in our forum

You will get the error message like:

Quote
Database Error
Please try again. If you come back to this error screen, report the error to an administrator.

But you don't know which chars cause this. Here is a way to find it.

For example, you can copy a text from this page GB 2312 - Wikipedia (https://en.wikipedia.org/wiki/GB_2312), which got such error. You can put your text in Notepad++, and see below image: 2022-11-05-convert-ANSI.png

And in the menu->Encoding, try to click the ANSI menu item, you got the result like below image: 2022-11-05-result.png

Now, you see which chars cause this error.

 ;)


Title: Re: How to find the illegal chars when you failed to post(Database Error)
Post by: Wkerry on November 05, 2022, 03:59:09 am
I use the search facility as described on the following page as sometimes using the ANSI/UTF-8 options do not show some characters:

https://stackoverflow.com/questions/20889996/how-do-i-remove-all-non-ascii-characters-with-regex-and-notepad
Title: Re: How to find the illegal chars when you failed to post(Database Error)
Post by: ollydbg on November 05, 2022, 04:11:29 am
I use the search facility as described on the following page as sometimes using the ANSI/UTF-8 options do not show some characters:

https://stackoverflow.com/questions/20889996/how-do-i-remove-all-non-ascii-characters-with-regex-and-notepad

Thanks.

Well, I think not all non-ANSI chars are not allowed in our forum. If I remember correctly, only a limited chars are not allowed. At least it can show Chinese chars.