From: "Jan C. Potthoff" <janosch_daiw@yahoo.co.nz>
To: gentoo-user-de@lists.gentoo.org
Subject: Re: [gentoo-user-de] [OT] Daten fuer PHP und MySQL maskieren
Date: Thu, 11 Aug 2005 21:08:45 +1200 (NZST) [thread overview]
Message-ID: <20050811090845.5398.qmail@web50302.mail.yahoo.com> (raw)
In-Reply-To: <20050811100731.06b88859@mail.sdamm.de>
--- Sebastian Damm <lists@sdamm.de> wrote:
> In die Datenbank gehören immer die Rohdaten. Was
> dann beim Auslesen daraus gemacht wird, ist Sache
> des Skriptes. trim und striptags können natürlich
> vorher drüberlaufen gelassen werden.
Das leuchtet ein. Man koennte die Daten ja auch mal
z.B. als PDF ausgeben wollen.
> Ist das nicht automatisch gegeben? Wenn die Daten
> aus einem Formular auf einem UTF-8-System ankommen,
> müsste doch auch die Datenbank UTF-8 als Kodierung
> haben. Damit regelt sich das denk ich mal von
allein.
Hmm .. ich habe im Meta-Tag der Skripte
charset=ISO-8859-1, also latin1, angegeben und MySQL
sagt das:
<code>
mysql> status;
[...]
Server characterset: latin1
Db characterset: latin1
Client characterset: latin1
Conn. characterset: latin1
[...]
</code>
Demnach sollten beide das gleiche Charset benutzen. Es
kommen aber leider die Sonderzeichen anstatt der
Umlaute in der DB an.
Aber nach Deinem Hinweis auf utf-8 habe ich bei Google
diese Anleitung gefunden. Ist zwar in Teilen fuer
PostgreSQL, aber diese Parts werden sich wohl
irgendwie auch auf DB-unabhaengig umsetzen lassen:
http://www2.uibk.ac.at/zid/systeme/webserver/webapp/postgres_zeichensatzkodierung.sdbk#id2788436
Tschoe und Danke
Jan
Send instant messages to your online friends http://au.messenger.yahoo.com
--
gentoo-user-de@gentoo.org mailing list
next prev parent reply other threads:[~2005-08-11 9:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-11 7:10 [gentoo-user-de] [OT] Daten fuer PHP und MySQL maskieren Jan C. Potthoff
2005-08-11 8:07 ` Sebastian Damm
2005-08-11 9:08 ` Jan C. Potthoff [this message]
2005-08-11 10:28 ` Sebastian Damm
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=20050811090845.5398.qmail@web50302.mail.yahoo.com \
--to=janosch_daiw@yahoo.co.nz \
--cc=gentoo-user-de@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