| |
chatGPZ
Registered: Dec 2001 Posts: 11293 |
quoting bug
when i use quotes in a forum message this happens
"this is quoted"
|
|
... 34 posts hidden. Click here to view all posts.... |
| |
Perff Administrator
Posts: 1673 |
Damn you!! ;)
As I thought I havn't fixed all places - yet.. But just wait.
Every time you mess something up like this, I'll have to find the missing fix - and fix it!
So I'll have to go to work now.. :) |
| |
Hein
Registered: Apr 2004 Posts: 939 |
Okok, I won't, so you can enjoy your spare time. |
| |
Perff Administrator
Posts: 1673 |
Ok.
Now I've fixed some of it..
But unless you guys experiment and mess up CSDb, I'll never find the missing places, so don't be shy. :) |
| |
Hein
Registered: Apr 2004 Posts: 939 |
Personally I think it's easier to set the HTML to UTF-8, and let the browser do the work. Then you don't need to do your fixes. |
| |
Perff Administrator
Posts: 1673 |
Hm? The things I'm fixing to make it work, is to undo what htmlentities does to uni-codes, so that the browser will display them as intended.
I know you should have centralised routines to print text out, but as this site have been developed over 8+ years, this is sadly not the case everywhere.. :)
But perhaps I misunderstood something? |
| |
Hein
Registered: Apr 2004 Posts: 939 |
I understand, had the same issues at work with an old engine we used (spaghetti engine). We decided to keep the whole database/engine Latin-1, and allow users to input their weird char-texts in UTF-8, which got inserted into the latin-1 tabels (as double bytes, no html entities). This to prevent digging through many lines of code to add encoding/decoding. When you fetch out the data, it's displayed correctly again.
Now that I think of it, it may be more work to convert the last 128 chars from the latin-1 charset (which are probably used in your database alot) to their UTF-8 representatives. :/
So it worked for us then, but only because there was no latin-1 (last 128-255 chars) data entered yet. |
| |
booker
Registered: Jul 2003 Posts: 334 |
Quote: Ok.
Now I've fixed some of it..
But unless you guys experiment and mess up CSDb, I'll never find the missing places, so don't be shy. :)
There http://noname.c64.org/csdb/latestforumposts.php Hein's new nick :) |
| |
booker
Registered: Jul 2003 Posts: 334 |
And if we're about quoting bug.
There's this weir behavior, when you press quote button, it:
a) doesn't let you edit the quoting, so you can't ie. delete text you don't refer to
b) don't display the nick of person quoted.
So there, either one uses BB himself [quote="person"] blah blah mlah [/quote] or quoting is sometimes weird :)
|
| |
booker
Registered: Jul 2003 Posts: 334 |
In the oneliner at the frontpage this: ażęółć gives garbage on the second letter from the end.
edit. weird but I tried again and it's fine, except the system entered a space between two last letters.
Other interesting thing is - editing this post gives me back codes instead of Polish letters in the edit box.
|
| |
Perff Administrator
Posts: 1673 |
About the oneliners, it's because there is put in spaces when a string is too long without spaces, to make it break. I should avoid to put spaces in codes - will think about ways to avoid that.
When you submit a post, the special signs are converted to the & # xxx codes, so that is also what you get when editing the post. Not sure if I can get around that? A problem?
Edit: Fixed the problem when editing posts. Was very simple actually. :) |
Previous - 1 | 2 | 3 | 4 | 5 - Next |