Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
7 registered (David Dreezer, Djuma, Harold, ntdoc, Pink Jazz, tee, 1 invisible), 23 Guests and 21 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 07/07/05
Posts: 62
Top Posters (30 Days)
Ruben Rocha 179
Gizmo 112
Rick 109
Thelockman 80
driv 43
AllenAyres 35
ntdoc 28
Ian 24
Sirdude 23
ScriptKeeper 20
Latest Photos
My Home System
test photo gallery
Bernese Mountain Dogs
My Daimler
Dorado and shark
Topic Options
Rate This Topic
#183837 - 05/04/07 04:14 PM Classic Import - truncating posts with apostrophes
AllenAyres Moderator Offline

****

Registered: 12/29/03
Posts: 1639
Loc: Texas
I imported a classic forum last night and it appears that posts with apostrophes were cut off at the apostrophe.

Or is it an issue with the forum - when I edit the post and put the whole post in, the data doesn't change - it's still cutting off right before the apostrophe.

???
_________________________
- Allen
- ThreadsDev | PraiseCafe

Top
#183838 - 05/04/07 04:19 PM Re: Classic Import - truncating posts with apostrophes [Re: AllenAyres]
Rick Administrator Offline

*****

Registered: 06/04/06
Posts: 7898
Loc: Aberdeen, WA
I've been working with someone else with a similar issue but with different characters. I've debugged it clear down to the native php level on what it's committing to mysql and it sends the whole post for the insert but it doesn't store it.

Do you have access to something like phpmyadmin on the server? If so, can you try doing an insert of the whole post in there and see if it takes?
_________________________
UBB.threads™ Developer
My Personal Website · StogieSmokers.com

Top
#183839 - 05/04/07 04:26 PM Re: Classic Import - truncating posts with apostrophes [Re: Rick]
AllenAyres Moderator Offline

****

Registered: 12/29/03
Posts: 1639
Loc: Texas
yes, once sec
_________________________
- Allen
- ThreadsDev | PraiseCafe

Top
#183841 - 05/04/07 04:37 PM Re: Classic Import - truncating posts with apostrophes [Re: AllenAyres]
AllenAyres Moderator Offline

****

Registered: 12/29/03
Posts: 1639
Loc: Texas
hmm...

it kept truncating the text when I put it in the POST_DEFAULT_BODY, when I put it in POST_BODY all the text just showed up run together (no spaces, ubbcode didn't work, etc.). If I tried to edit the post within the forum it re-truncated.

I posted the content into POST_DEFAULT_BODY once more and then noticed in the forum the apostrophe and hyphen were giving me weird symbols - thinking it may be a character set issue I went to the control panel and changed charset from iso-8859-1 (or something like that) to utf-8

Things seem to be ok now, I can edit the post and all data stays.

I may need to re-import, but at least things are looking better, what do you think about the 'cure'?
_________________________
- Allen
- ThreadsDev | PraiseCafe

Top
#183846 - 05/04/07 07:17 PM Re: Classic Import - truncating posts with apostrophes [Re: AllenAyres]
Rick Administrator Offline

*****

Registered: 06/04/06
Posts: 7898
Loc: Aberdeen, WA
I think you're probably good now. Like I said, I had the one other customer with the same issue. I'm trying to figure out if it's a certain mysql setting or version where this is a problem. Since it's doing it even through phpmyadmin with direct updates there must be something in particular with mysql or the charset.
_________________________
UBB.threads™ Developer
My Personal Website · StogieSmokers.com

Top
#183852 - 05/04/07 08:38 PM Re: Classic Import - truncating posts with apostrophes [Re: Rick]
AllenAyres Moderator Offline

****

Registered: 12/29/03
Posts: 1639
Loc: Texas
hmmm... I can at least edit topics and use apostrophe's, but the importer is still truncating the topics :smash:

Does the importer not use the charset of the forum?
_________________________
- Allen
- ThreadsDev | PraiseCafe

Top
#183854 - 05/04/07 09:21 PM Re: Classic Import - truncating posts with apostrophes [Re: AllenAyres]
AllenAyres Moderator Offline

****

Registered: 12/29/03
Posts: 1639
Loc: Texas
the problem is classic for most people is set at

ISO-8859-1

importing into mysql with a charset of utf-8 is where the truncating is happening.

It's running on

PHP: 5.2.0

Apache: 1.3.37 (who still runs this?)

MySQL:
Server version: 5.0.32-log
MySQL client version: 4.0.20
MySQL charset: (utf8)

Not the most current versions, but meets criteria.
_________________________
- Allen
- ThreadsDev | PraiseCafe

Top
#183856 - 05/04/07 09:36 PM Re: Classic Import - truncating posts with apostrophes [Re: AllenAyres]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 12006
Loc: Portland, OR; USA
lol a lot of ensim based webhosts still use apache1.3 and mysql4.0
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#183872 - 05/05/07 08:26 AM Re: Classic Import - truncating posts with apostrophes [Re: AllenAyres]
Rick Administrator Offline

*****

Registered: 06/04/06
Posts: 7898
Loc: Aberdeen, WA
Hmm, what is the collation set to on the individual UBB.threads tables?
_________________________
UBB.threads™ Developer
My Personal Website · StogieSmokers.com

Top
#183875 - 05/05/07 10:55 AM Re: Classic Import - truncating posts with apostrophes [Re: Rick]
AllenAyres Moderator Offline

****

Registered: 12/29/03
Posts: 1639
Loc: Texas
utf8_general_ci

for all of them.
_________________________
- Allen
- ThreadsDev | PraiseCafe

Top


Shout Box

Today's Birthdays
brushie, cass, Monte G., twebman, White Gold Wielder
Recent Topics
Shrinking graemlins
by Djuma
16 minutes 4 seconds ago
2 problems I'm seeing now.
by DougMM
Today at 04:39 PM
Which CSS Style Controls the bottom lines
by David DelMonte
Today at 01:51 PM
UBBThreads vs. vBulletin -- Defections & Why So Tough to Compare?
by WebMagic
Today at 12:28 PM
Font and column shifts occuring
by Bill B
Yesterday at 06:21 PM
Forum Stats
4261 Members
33 Forums
30532 Topics
154956 Posts

Max Online: 978 @ 06/24/07 08:19 PM