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. |
|||
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. 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? |
|||
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) 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. |
|||
« Next Oldest | Next Newest »
|