public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Renat Golubchyk <ragermany@gmx.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Convert windows-1250 database to UTF-8
Date: Mon, 7 Nov 2005 20:41:25 +0100	[thread overview]
Message-ID: <20051107204125.43aaed1a@mating-tux.renatik.de> (raw)
In-Reply-To: <436F39A2.8000706@lsinter.net>

[-- Attachment #1: Type: text/plain, Size: 1167 bytes --]

On Mon, 07 Nov 2005 12:25:22 +0100 Khan <nbv.sa@lsinter.net> wrote:
> Bruno Lustosa wrote:
> > On 11/7/05, *Khan* <nbv.sa@lsinter.net <mailto:nbv.sa@lsinter.net>>
> > wrote:
> > 
> > > I'm trying to convert my windows-1250 database to Unicode,
> > > UTF-8. Is there any script that can do the job?
> > 
> > What kind of database is it?
> > If it's something the likes of postgresql or mysql, you could dump
> > the database to a text file, use recode or iconv to change the file 
> > encoding, and then import it into a new unicode database.
> 
> Yes, that's just what I want to do. Database is MySQL. Can you PLS 
> explain procedure, I have never done that before.

As far as I know you can change the character set directly in  MySQL.
The data will be converted automagically. For example,

ALTER TABLE foo DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci

You can create a new table and test it with some garbage data before you
do this. And create a backup ;-)


Cheers,
Renat

-- 
Probleme kann man niemals mit derselben Denkweise loesen,
durch die sie entstanden sind.
                                              (Einstein)

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      parent reply	other threads:[~2005-11-07 20:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-07 11:07 [gentoo-user] Convert windows-1250 database to UTF-8 Khan
2005-11-07 11:19 ` Bruno Lustosa
2005-11-07 11:25   ` Khan
2005-11-07 14:39     ` Hans-Werner Hilse
2005-11-07 19:41     ` Renat Golubchyk [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051107204125.43aaed1a@mating-tux.renatik.de \
    --to=ragermany@gmx.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox