Profile description text changes when editing?

Is something wonky on the site? Describe the problem to us, and we'll fix it ASAP.
Forum rules
Bug Reporting Guidelines

Before Posting
Please make sure someone hasn't already reported the problem you're experiencing before creating a new topic. Confirmed issues have been stickied in this forum.

Rules

    1) Use a descriptive title when starting a bug topic. Example: "Comic images not showing up" Do not use vague titles like, "problem" or "uh ohh"

    2) Describe your problem in detail. Explain exactly what is wrong. Post images, screen shots, links, code snippets - whatever is relevant. The better the information you provide, the better the solution you will receive.

    3) Be polite and patient. We fix these issues as fast as we can. Please be patient with us as we work toward a solution.

Profile description text changes when editing?

Postby Asj » October 27th, 2011, 11:18 am

Has anyone noticed this? I changed the text for my profile description awhile ago and copied it into the description box from my word processer. It showed up fine.
Today, I wanted to edit it a little bit, and in the box, the apostrophies showed up as something like... a type of A and two boxes. I figured I'd leave them be, but after saving the changes, the profile displayed the A and two boxes instead of the apostrophies.
I went back to change the messed up code to the straight apostrophies, which I knew would show up right. In the editer, the code changed to � (an A, a cent sign, something else, an upside down question mark, a half, and then it repeats the something else, question mark, and half).
I left one of them just to see what it would do. It changed to that in the profile after I saved it, and I edited it again. In the box, it changed to �¢ï¿½ï¿½ (an A, a box, a different A, a cent sign, an A, a dash looking thing, the different looking A, an upside down question mark, the different looking A, a half, an A, the dash thing, the different looking A, an upside down question mark, the different looking a, and a half).

So, the profile description can show the curved apostrophies, but every time the profile is edited, the code will change to something else, each time to something around twice as long. Is there a way to fix that (have the editing textbox not change the code?), or is it just something that people have to remember not to use? (I find it odd that the code changes each time, because usually online, once those types of things change, that's it)
Image
User avatar
Asj
 
Posts: 944
Joined: January 4th, 2009, 5:42 pm

Re: Profile description text changes when editing?

Postby eishiya » October 27th, 2011, 11:53 am

The change happens due to encoding differences and improper character escaping between the profile text being output from the database, then sent back by your browser to the server and put back in the database. This is something that can be fixed, but I think it's safer to just stick to ASCII in any sort of text box online because this is pretty common.
Busy, busy.
User avatar
eishiya
 
Posts: 5839
Joined: December 5th, 2009, 11:17 am

Re: Profile description text changes when editing?

Postby Asj » October 27th, 2011, 4:32 pm

I mainly just found it strange that it keeps multiplying. I thought once it changed, it wouldn't change again.
Image
User avatar
Asj
 
Posts: 944
Joined: January 4th, 2009, 5:42 pm

Re: Profile description text changes when editing?

Postby eishiya » October 27th, 2011, 4:57 pm

It changes because every time it's displaying the encoded characters wrong, then tries to encode the wrong characters as if they're the right characters. Then when that gets displayed, it gets reencoded again and again.
Busy, busy.
User avatar
eishiya
 
Posts: 5839
Joined: December 5th, 2009, 11:17 am

Re: Profile description text changes when editing?

Postby xiaa » November 10th, 2011, 3:39 pm

Uhm I had a similar problem on a different website, but the problem was apostrophes in microsoft word are different from the ones you see online. So if I were you, I'd do a Find / Replace and replace all of Microsoft's quotes (””) with the internet quotes symbols ---->"

and their apostrophes (') to ---> '
Last edited by xiaa on November 10th, 2011, 9:10 pm, edited 1 time in total.
User avatar
xiaa
 
Posts: 22
Joined: August 1st, 2008, 8:51 pm

Re: Profile description text changes when editing?

Postby Admin » November 10th, 2011, 7:41 pm

I tried copying � into one of my comics' profiles and I didn't get the weird transformation problem. Can you confirm or reject this? Or does it only happen with different characters?
User avatar
Admin
Site Admin
 
Posts: 987
Joined: August 17th, 2005, 11:10 pm

Re: Profile description text changes when editing?

Postby Asj » November 11th, 2011, 10:04 am

When I use the formatted ' 's, from a word processer, and then edit it, it changes.
these things: “” ‘’ Each time I would click to edit the profile, it would change to something else. Looks like the first change is to â��

doing it just now, after a few edit-submits, I ended up with this for one apostrophe, and ran out of room in my profile description (I doubt anyone could miss it after two or three edits, but someone may not notice the first time). ����¯�¿�½���¯���¿���½����¯�¿�½������¢����¯�¿�½������¯����¯�¿�½������¿����¯�¿�½������½����¯�¿�½������¯����¯�¿�½������¿����¯�¿�½������½

edit: Oh, when I tried copying what you tried, it changed to �¢ï¿½ï¿½. After putting it in the description, you have to push submit, then edit and submit again. It changes when hitting the edit button.
Image
User avatar
Asj
 
Posts: 944
Joined: January 4th, 2009, 5:42 pm


Return to Bugs & Glitches

Who is online

Users browsing this forum: No registered users and 0 guests