Post Reply 
Forum adding unicode character to code blocks?
Dec. 15, 2011, 04:55 AM
Post: #1
Forum adding unicode character to code blocks?
The forum code appears to be adding, at least, the "zero width space" unicode character ​ to code blocks. The Proxomitron and some editors convert it to a question mark, which can break filters.

Discovered by eclipse http://prxbx.com/forums/showthread.php?t...6#pid15926

Will look for solution tomorrow.
Add Thank You Quote this message in a reply
Dec. 16, 2011, 03:28 AM
Post: #2
RE: Forum adding unicode character to code blocks?
My best guess is that the forums word wrap routine is responsible. I have found http://community.mybb.com/thread-100522-...#pid748894 .

G33K Wrote:The problem was that the word wrap setting was lowered to 40, this caused the javascript mycode replacement to get cutoff after 40 characters and a zero width character getting inserted which broke the javascript.

I raised the word wrap limit to the default of 80 and this fixed it. So for others here who were having problems try raising your word wrap limit if it is lowered or if your mycode replacement contains a continuous string of characters that is longer than the word wrap limit.

The current routine appears to insert "zero width characters" regardless of string length, however. Unless, TUOPF's "Number of Characters before Word Wrapping Occurs" setting is very low?
Add Thank You Quote this message in a reply
Dec. 16, 2011, 11:00 AM
Post: #3
RE: Forum adding unicode character to code blocks?
Thanks for looking into this; I've disabled the "feature" (we can call it a bug) Smile! It was set to 80 previously, but I've set it to 0 to disable it.

If the problem is still occurring I'll dive deeper into the code.
Visit this user's website
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: