<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>WordPress DK Forum Topic: MySQL problemer mht charset utf-8 og swedish blanding</title>
		<link>http://wp-danmark.dk/forum/topic/mysql-problemer-mht-charset-utf-8-og-swedish-blanding</link>
		<description>WordPress DK Forum Topic: MySQL problemer mht charset utf-8 og swedish blanding</description>
		<language>da-DK</language>
		<pubDate>Tue, 18 Aug 2026 12:56:04 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Søg]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://wp-danmark.dk/forum/search.php</link>
		</textInput>
		<atom:link href="http://wp-danmark.dk/forum/rss/topic/mysql-problemer-mht-charset-utf-8-og-swedish-blanding" rel="self" type="application/rss+xml" />

		<item>
			<title>kmardahl om "MySQL problemer mht charset utf-8 og swedish blanding"</title>
			<link>http://wp-danmark.dk/forum/topic/mysql-problemer-mht-charset-utf-8-og-swedish-blanding#post-4821</link>
			<pubDate>ons, 06 feb 2008 13:44:27 +0000</pubDate>
			<dc:creator>kmardahl</dc:creator>
			<guid isPermaLink="false">4821@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Hej&#60;br /&#62;
En kollega i USA og jeg arbejder på en WordPress site. Splinterny. Hun har knoklet for at vælge et tema, og alt skulle være klart nu. Så er hun løbet ind i charset problemer. Jeg har set en tråd om en UTF-8 convertor og vi skal prøve det når hun vågner, men jeg ved ikke om det er faktisk det. Kan nogen hjælpe? Her er hvad hun skriver:&#60;/p&#62;
&#60;p&#62;Vi er på Dreamhost og tog anbefalet default utf8_unicode_ci for charset.&#60;/p&#62;
&#60;p&#62;Når man logger ind, får man:&#60;/p&#62;
&#60;p&#62;&#34;The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.&#34;&#60;/p&#62;
&#60;p&#62;Først panel under mysql spalte har vi MySQL charset:  UTF-8 Unicode (utf8)&#60;/p&#62;
&#60;p&#62;MySQL connection collation: utf8_unicode_ci&#60;/p&#62;
&#60;p&#62;Iflg Dreamhost hjælp vi sat connection collation to utf8_bin. Fejlmeddelsen var der endnu. Andre foreslår at ændre latin1 til utf8 men hvordan.&#60;/p&#62;
&#60;p&#62;Og - ta da - database siger nu at Collation is latin1_swedish_ci !!!???&#60;/p&#62;
&#60;p&#62;(index.php i mysql)&#60;/p&#62;
&#60;p&#62;I Server Variables and Settings kan man se mange instanser af latin1 og latin1_swedish_ci. De kan highlightes men kan ikke skiftes til utf8.&#60;/p&#62;
&#60;p&#62;Server variables and settings&#60;br /&#62;
Variable                Session value / Global value&#60;br /&#62;
auto increment increment        1&#60;br /&#62;
auto increment offset           1&#60;br /&#62;
automatic sp privileges         ON&#60;br /&#62;
back log                        50&#60;br /&#62;
basedir                         /data/mysql/gnatek/&#60;br /&#62;
binlog cache size               32,768&#60;br /&#62;
bulk insert buffer size         8,388,608&#60;br /&#62;
character set client            utf8&#60;br /&#62;
(Global value)                  latin1&#60;br /&#62;
character set connection        utf8&#60;br /&#62;
(Global value)                  latin1&#60;br /&#62;
character set database          latin1&#60;br /&#62;
character set filesystem        binary&#60;br /&#62;
character set results           utf8&#60;br /&#62;
(Global value)                  latin1&#60;br /&#62;
character set server            latin1&#60;br /&#62;
character set system            utf8&#60;br /&#62;
character sets dir              /data/mysql/gnatek/share/mysql/charsets/&#60;br /&#62;
collation connection            utf8_bin&#60;br /&#62;
(Global value)                  latin1_swedish_ci&#60;br /&#62;
collation database              latin1_swedish_ci&#60;br /&#62;
collation server                latin1_swedish_ci&#60;br /&#62;
completion type                 0&#60;br /&#62;
concurrent insert               1&#60;br /&#62;
connect timeout                 5&#60;br /&#62;
datadir                         /dh/mysql/gnatek/data/&#60;br /&#62;
date format                     %Y-%m-%d&#60;br /&#62;
datetime format                 %Y-%m-%d %H:%i:%s&#60;br /&#62;
default week format             0&#60;br /&#62;
delay key write                 ON&#60;br /&#62;
etc., etc.&#60;/p&#62;
&#60;p&#62;En bruger kommentar fra 25 January 2008 i help siger&#60;br /&#62;
&#38;lt;http://dev.mysql.com/doc/refman/5.0/en/charset-connection.html&#38;gt;&#60;/p&#62;
&#60;p&#62;When you change the charset of a table, every column is explicitly set to take the *old* charset - even if the columns in your tables all took the default charset! You will need to issue ALTER TABLE statements for every column, or dump the database to file and replace all the character set references. I did the latter with three text&#60;br /&#62;
   replacements:&#60;/p&#62;
&#60;p&#62;   Change table-specific charsets&#60;/p&#62;
&#60;p&#62;   Replace: &#34; DEFAULT CHARSET=latin1&#34;&#60;br /&#62;
   With: &#34; DEFAULT CHARSET=utf8&#34;&#60;br /&#62;
   Remove any column-specific charsets&#60;br /&#62;
   Delete all occurrences of: &#34; character set latin1&#34;&#60;br /&#62;
   Change all char's to varchar's because char has to store 3&#60;br /&#62;
bytes/character in utf8 while varchar can store 1&#60;br /&#62;
   for short characters&#60;/p&#62;
&#60;p&#62;   Replace: &#34; char(&#34;&#60;br /&#62;
   With: &#34; varchar(&#34;&#60;br /&#62;
   You might want to search for &#34;latin1&#34; and see if anything else needs&#60;br /&#62;
to be changed. Then follow the instructions&#60;br /&#62;
   above and everything will be fine. Hopefully this will save someone&#60;br /&#62;
else a day's worth of trouble.&#60;/p&#62;
&#60;p&#62;Men der er ingen DEFAULT CHARSET linie i Collations table.&#60;/p&#62;
&#60;p&#62;Hjælp! Er der nogen der har erfaring/idéer? Det hele er splinterny så vi kunne være barsk og gå tilbage til 0. Skal vi virkelig det?&#60;/p&#62;
&#60;p&#62;På forhånd MANGE TAK!!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
