Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
0 registered (), 33 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/02/04
Posts: 195
Top Posters (30 Days)
Ruben 51
DennyP 24
Gizmo 23
Dunny 16
SteveS 14
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#183837 - 05/04/07 07:14 PM Classic Import - truncating posts with apostrophes
AllenAyres Offline

Registered: 12/29/03
Posts: 1995
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
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#183838 - 05/04/07 07:19 PM Re: Classic Import - truncating posts with apostrophes [Re: AllenAyres]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
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?
Top
#183839 - 05/04/07 07:26 PM Re: Classic Import - truncating posts with apostrophes [Re: Rick]
AllenAyres Offline

Registered: 12/29/03
Posts: 1995
Loc: Texas
yes, once sec
_________________________
- Allen
- ThreadsDev | PraiseCafe
Top
#183841 - 05/04/07 07:37 PM Re: Classic Import - truncating posts with apostrophes [Re: AllenAyres]
AllenAyres Offline

Registered: 12/29/03
Posts: 1995
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 10:17 PM Re: Classic Import - truncating posts with apostrophes [Re: AllenAyres]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
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.
Top
#183852 - 05/04/07 11:38 PM Re: Classic Import - truncating posts with apostrophes [Re: Rick]
AllenAyres Offline

Registered: 12/29/03
Posts: 1995
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/05/07 12:21 AM Re: Classic Import - truncating posts with apostrophes [Re: AllenAyres]
AllenAyres Offline

Registered: 12/29/03
Posts: 1995
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/05/07 12:36 AM Re: Classic Import - truncating posts with apostrophes [Re: AllenAyres]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
lol a lot of ensim based webhosts still use apache1.3 and mysql4.0
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#183872 - 05/05/07 11:26 AM Re: Classic Import - truncating posts with apostrophes [Re: AllenAyres]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Hmm, what is the collation set to on the individual UBB.threads tables?
Top
#183875 - 05/05/07 01:55 PM Re: Classic Import - truncating posts with apostrophes [Re: Rick]
AllenAyres Offline

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

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



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
Yesterday at 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10489 Members
36 Forums
33841 Topics
181706 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image