SMF Support > SMF 2.0.x Support

Post not complete after hitting POST Button

<< < (12/15) > >>

Johnny B:
No funny code at all appeared, just cut off.

I typed this in word: This is just a test just a “test”

copied and paste it in the forum and got this:

This is just a test just a

MrPhil:
OK, please upload the attached copy of Subs.php. It contains a few lines to dump out the bytes in your input (raw) message so I can see what's going on. Please repeat your "just a test" test with it. You shouldn't see any change to the display, but if you look at the page source (HTML) you should see a comment <!-- fix_SmartQuotes: ... followed by whether or not it's UTF-8 and all the byte values. Please cut and paste that line into your next post. After that, you can restore your system by editing out all the lines between (and including) // =================, or just restoring an earlier copy of the file.

Johnny B:
OK sir, this is what I saw in two locations, the first was located at the top of the page source and very first line and the second was about half way down

<!-- fix_SmartQuotes: is NOT UTF-8 encoding, bytes: 4D 45 42 41 20 4D 65 6D 62 65 72 73 20 6D 75 73 74 20 73 69 67 6E 20 69 6E 20 74 6F 20 76 69 65 77 20 61 6C 6C 20 62 6F 61 72 64 73 -->

<!-- fix_SmartQuotes: is NOT UTF-8 encoding, bytes: 54 68 69 73 20 69 73 20 6A 75 73 74 20 61 20 74 65 73 74 20 -->

MrPhil:
Is the second one where it fails and gets cut off? The first line says "MEBA Members must sign in to view all boards" and the second line says "This is just a test ". Was this second one cut off at a Smart Quote? What was its history -- was it cut and pasted directly from Word? It looks like it got cut off either while going into the database or being retrieved from it. It didn't survive to get to the point where my routine could work on it!

Well, at this point, you certainly could try converting your forum to UTF-8, and hope for the best. I know that some browsers (no guarantee that all) will convert Smart Quotes on the fly to UTF-8 characters. Maybe that will work. I would leave in the fix_SmartQuotes patch I gave you just in case some Smart Quotes in existing posts survive the conversion process and end up being sent to the browser. You can either revert to your previous copy (without the hex dump) or edit the file to remove // ===== and everything in between those two lines.

Note that writing a post in Word, only for the purpose of cutting and pasting it to SMF, is kind of pointless. All the formatting is destroyed anyway, and needs to be put back in. The only reason would be that you're going to keep a Word document with that content, anyway. If you just want to paste the same text in multiple forums, I would write it in Notepad so that it's plain text (no formatting, no Smart Quotes).

Johnny B:
Is the second one where it fails and gets cut off?  I've lost you on this one, no idea what second one you are talking about, sorry.

At this point I have no idea where the original article was created or created on. All I know is when a member copies an article from my old forum to this one where ever there is a ' or " character it will not display anything from there forward.

As for: This is a test "just a test"

That was done in word as you asked me too, copied and pasted in the forum resulting in the exact same behavior.

OK, this isn't good, not much of a forum if members can't copy and paste an article without most of the article missing, beginning to wish I had invested the money into vBulletin.  Thank you for your help, you really reached out far beyond what most folks would have. Very kind of you sir. If I can ever repay the favor please send a PM and I'll do my best to assist you.  Off to research on how to convert this thing over as that seems to be the last stop before I ditch this thing for vBulletin. Thank you again and God Bless

 

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version