<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Colorado Art Studio &#187; strange characters in blog posts after upgrade to 2.6</title>
	<atom:link href="http://coloradoartstudio.com/tag/strange-characters-in-blog-posts-after-upgrade-to-26/feed/" rel="self" type="application/rss+xml" />
	<link>http://coloradoartstudio.com</link>
	<description>Handmade Pottery and Ceramic Jewelry by Cynthia Guajardo</description>
	<lastBuildDate>Thu, 09 Feb 2012 13:00:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>OCD about my website and blog after restoring &#8211; Success</title>
		<link>http://coloradoartstudio.com/2008/08/14/ocd/</link>
		<comments>http://coloradoartstudio.com/2008/08/14/ocd/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 01:09:49 +0000</pubDate>
		<dc:creator>Cynthia</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Â]]></category>
		<category><![CDATA[character sets]]></category>
		<category><![CDATA[doh]]></category>
		<category><![CDATA[double spaces]]></category>
		<category><![CDATA[restoring wordpress database from backup]]></category>
		<category><![CDATA[search and replace plugin]]></category>
		<category><![CDATA[strange characters in blog posts after upgrade to 2.6]]></category>
		<category><![CDATA[utf8]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://coloradoartstudio.com/?p=800</guid>
		<description><![CDATA[Not art related &#8211; but maybe someone might be helped if they&#8217;re experiencing something similar. Reward after fixes and headache This past weekend was supposed to be a weekend full... <a class="read-more" href="http://coloradoartstudio.com/2008/08/14/ocd/">Read The Rest &#8594;</a>]]></description>
			<content:encoded><![CDATA[<p>Not art related &#8211; but maybe someone might be helped if they&#8217;re experiencing something similar.</p>
<p style="text-align: center;"><a href="http://coloradoartstudio.com/wp-content/uploads/2008/08/j0422379.jpg" rel="lightbox[800]"><img class="size-medium wp-image-802 aligncenter" title="Martinis" src="http://coloradoartstudio.com/wp-content/uploads/2008/08/j0422379.jpg" alt="" width="246" height="368" /></a></p>
<p style="text-align: center;">Reward after fixes and headache</p>
<p>This past weekend was supposed to be a weekend full of making art uninterrupted for as long as I wanted because both my daughter and husband were out of town.  Instead, I spent all weekend fixing my website and WordPress blog after I accidentally deleted it.  Luckily, I was able to <a href="http://codex.wordpress.org/Restoring_Your_Database_From_Backup" target="_blank">restore my wordpress blog from a back up database using phpMyAdmin</a> in the Cpanel of my server, but after uploading it, I was faced with 100&#8242;s of missing images, funky characters littering my old posts and a theme that wasn&#8217;t working anymore.  Arghhh.</p>
<p>While I was relieved to have recovered all my posts, I have been <a href="http://en.wikipedia.org/wiki/Obsessive-compulsive_disorder" target="_blank">obsessed (maybe even possessed)</a> the past 7 days with finding a fix for my missing images and the <a href="http://wordpress.org/support/topic/190553" target="_blank">odd characters like Â and â€</a> showing up in my older wordpress blog posts (all posts that were written before upgrading to 2.6).   The thought of editing every single one of my 422 posts was making me nauseous and sent me on a quest to repair everything.</p>
<p>Here&#8217;s sort of what went wrong.  I created a new database for my blog and decided to start from scratch and did a new install of WordPress on my server.  I then proceeded to  add my theme and plugins folder to the new install using the ftp function to my server.  At this point, it&#8217;s still a fresh install since there is no content.  I researched and researched on <a href="http://www.tamba2.org.uk/wordpress/restore/" target="_blank">how to restore a database</a> from a backup and it worked great with the exception of missing images and the funky characters.</p>
<p><strong><span style="color: #993300;">Problem #1</span></strong> &#8211; I uploaded and activated the <a href="http://wordpress.org/extend/plugins/wordpress-automatic-upgrade/" target="_blank">Automatic Upgrade Plugin</a> after my fresh install &#8211; which was perhaps foolish to do before restoring my database.  I was feeling confident and thought this was a terrific idea at the time since I wanted to take care of all my to-dos right from the get go.  I went from WordPress 2.5.1 to 2.6 &#8211; though I had already upgraded from previous versions of WordPress.</p>
<p><span style="color: #993300;"><strong>Problem #2</strong></span> &#8211; It shouldn&#8217;t really have been a big deal, but a lot of my posts were from previous versions of WordPress.  I found out that there was likely a <a href="http://codex.wordpress.org/Converting_Database_Character_Sets" target="_blank">character set mismatch with previous versions and the new 2.6</a>.  Older versions of WordPress used <em>latin1</em> <a href="http://codex.wordpress.org/Glossary#Character_set" target="_blank">character set</a> and the <em>latin1_swedish_ci</em> collation (which refers to western languages) and newer versions use <a href="http://en.wikipedia.org/wiki/UTF-8" target="_blank">UTF-8</a> which is a universal unicode that helps blogs be accessible across the globe regardless of language spoken.  Sure enough, I looked at my database in phpMyAdmin and I had both a latin1 and utf8 in there.  I followed all the steps in the convert your database to utf8 found here and crossed my fingers before hitting &#8220;go&#8221; on my computer.  And, while utf8 is supposed to translate latin1, my old blog posts were still showing the funky character sets after converting the database.</p>
<p><span style="color: #993300;"><strong>Problem #3</strong></span> &#8211; I should probably tell you that at this point, I had wisely backed up everything once again and saved it to my computer just in case.  I think that part of my problem was that before backing up my database correctly the first time around, I only had a backup thanks to my host who provides weekly backups.  Thank God I had that though and I won&#8217;t make that mistake again!  <a href="http://codex.wordpress.org/Backing_Up_Your_Database" target="_blank">A proper backup</a> involves deleting your blog&#8217;s cache before executing which is where I think I may have run into all my problems since I was relying on my host&#8217;s backup info.  Incidentally, I have deleted the old cache file since discovering all this.</p>
<p>In the meantime, I was getting frustrated and was definitely not working in the studio.  I decided to switch gears and to figure out what went wrong with my photos.  When I checked my &#8220;media library&#8221; in my Worpdress dashboard, my images showed the correct file names, but when I clicked on the image, I was informed that they were &#8220;not found&#8221;.  I went back and double checked my <a href="http://wpbits.wordpress.com/2007/08/08/a-look-inside-the-wordpress-database/" target="_blank">database</a> and could clearly see the images when I looked inside the table called &#8220;wp-content&#8221; (which stores the core of all your post data) under the field called<em> &#8220;</em>post_mime_type&#8221;.  Here&#8217;s where I found <span style="color: #993300;"><strong>problem #4</strong> </span>- my old images were stored as http://coloradoartstudio.com/blog/wp-content/uploads/picture.jpg since my old install was under a subdirectory of my domain and I uploaded my new install under my domain http://coloradoartstudio.com/wp-content/uploads/picture.jpg  with no subdirectory.  My media library was reading the text, but not the actual image.</p>
<p>The fix &#8211; I found a cool <a href="http://wordpress.org/extend/plugins/search-and-replace/" target="_blank">plugin called Search and Replace</a> that I uploaded to my wordpress files using ftp and which enabled me to search my wordpress database for the old upload folder and replace it with the new one.  Success!  My images were all back, except for the month of August that were written before I restored &#8211; so I only have to manually update about 5 posts.  I can do that.  If I had the know how to mess with <a href="http://codex.wordpress.org/Backing_Up_Your_Database#Using_MySQL_Administrator" target="_blank">MySql commands</a>, I could have done it there.  But, the plugin which you access from your blog dashboard makes it easy for non technical people like myself.  Huge sigh of relief.</p>
<p>Now, if your head hurts after reading this, then you get an idea of what I was going through.</p>
<p>After that success (which happened last night btw), I was on to something and didn&#8217;t want to let it go.  I was getting closer and closer to finding the fix for the funky character on old posts issue now.  A part of me was saying, just let it go.  Who cares since it&#8217;s still readable.  But, I do care how my blog looks.  I ended up going to bed last night after midnight with no success.</p>
<p>I think the phrase, <a href="http://www.scientificblogging.com/news_releases/sleep_on_it_not_just_a_phrase_it_improves_memory" target="_blank">&#8220;sleep on it&#8221;</a> has merit.  I woke up around 6 am this morning so that I could have a little coffee before going to teach my 9am class at the Art Student&#8217;s League and time to check emails etc.  Now, I normally reserve this time for writing blog posts, visiting blogs, responding to emails etc., but of course this morning, my mind was still on the stupid character set problem even after converting my database to utf8.  I also tried another fix which involved deleting a couple of lines in my-config.php file &#8211; this did remove the funky characters in the old posts, but gave my new posts the same problem.  So, I was back to the search.</p>
<p><strong><span style="color: #993300;">Problem #5</span></strong> &#8211; Further sleuthing, led me to this <a href="http://wordpress.org/support/topic/190553" target="_blank">post</a> on the wordpress support forum and then this <a href="http://wordpress.org/support/topic/187662" target="_blank">post</a> and this <a href="http://wordpress.org/support/topic/144841?replies=4" target="_blank">one</a> which led me to believe that it was the double space after a . that was causing a Â to follow every period followed by another sentence, hence the coding mismatch.  I found out that <a href="http://en.wikipedia.org/wiki/Double_spacing#Style_preferences" target="_blank">double spaces after a full stop </a>(or a .)  is considered old school and reserved for actual typewriters technology and not for the web.  Guess what?  I learned how to type in 1982 on an old IBM Selectric and was taught to double space &#8211; old habits die hard.</p>
<p>After banging my head on my computer a few times, I decided to try the Search and Replace Plugin that I had used the night before to restore my images.  So so simple.  I entered Â on the &#8220;replace&#8221; line inside the plugin and replaced it with nothing &#8211; not a unicode for a space, just left it blank and voilá.  The issue is solved.  There are still a few posts with other weird characters, but they&#8217;re not as pervasive as the Â following a period and now I know how to fix them.</p>
<p>So, now what?  I can concentrate on restoring the images for my pre 2.6 posts for the month of August and I can start creating a custom page template for my static pages.</p>
<p>In all my manic, I also installed <a href="http://www.apachefriends.org/en/xampp.html" target="_blank">Xampp</a> after reading this <a href="http://www.tamba2.org.uk/wordpress/xampp/" target="_blank">tutorial on how to install wordpress on my computer</a> so that I can mess around (play) with my blog without fear of destroying my live blog.</p>
<p>So, I&#8217;m signing off for the night and hopefully, I&#8217;ll stop obsessing and get back to normal.</p>
<p>~Cynthia</p>
<p>Now, I gotta hope that after I click on &#8220;publish&#8221; that everything looks normal&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://coloradoartstudio.com/2008/08/14/ocd/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

