Re: insert-Script für utf8-Daten



Hallo!

Ralph Stahl schrieb:
Moin,

Erzeuge ich die inserts über PHP und den lokalen Webserver, klappt das.
Lasse ich das insert-Script in der mysql-Shell laufen, klappt es nicht -
dann kommen sonderbare Zeichen raus.

Wenn Du sagst, lokal klappt das alles, gehe ich davon aus, dass du einen
remote server hast... dann liegt es wohl am Server ;)

Mir ist die Notwendigkeit der richtigen EInstellung per SET-Befehl für
die Connection und anderes wohl bewußt und denke mal, daß ich die
passenden SET-Zeilen auch in das Script schreiben muß. Ich finde nur
keine Kombination raus, die a) fehlerfrei läuft (manche SETs sind aus
Client-Sicht read-only) und b) das richtige bewirkt.

die frage ist folgende: Hast Du (1) ein sql-skript, dass du per console
(shell) und dem mysql-client in die db hauen willst, oder (2) ein php
skript, dass du auf dem remote server laufen lassen möchtest?

(1)
Achtung: Schau mal bitte nach, ob die aktuellen clients für linux
tatsächlich utf-8 unterstützen.
(2)
Wenn das nicht funktioniert, obwohl es lokal klappt, ist die datei beim
hochladen eventuell als simples ascii gespeichert worden (und dann kein
utf-8 mehr), du musst u.U. auch deinem server, resp. deinem ftp-client
sagen, dass es sich um utf-8 handelt. lass dir doch die datei mal auf
dem server mit vi anzeigen...

Könnt Ihr mir bitte helfen? (Ich weiß schon, "Manual lesen", aber damit
komme ich trotzdem nicht weiter)

IMHO kann man das mit den Zeichensätzen nicht mit manuals lösen. Wenn
jemand mal ein Manual verfasst hat, bin ich gerne bereit, das Probe zu
lesen.

Gruß alex
.



Relevant Pages

  • Re: PHP Instalation problems. Browser doesnt know what to do
    ... This is loaded and run as a local server (for class ... PHP 5.2.0 from php-5.2.0-win32-installer.msi ... # configuration directives that give the server its instructions. ...
    (comp.lang.php)
  • Re: PHP Instalation problems. Browser doesnt know what to do
    ... This is loaded and run as a local server (for class ... PHP 5.2.0 from php-5.2.0-win32-installer.msi ... # configuration directives that give the server its instructions. ...
    (comp.lang.php)
  • RE: [PHP] Communicating with remote server
    ... On the database server, under the control of it's web server, the script ... Communicating with remote server ... both my server and the remote server have webservers with PHP ...
    (php.general)
  • RE: phpBB Worm
    ... the getpwent function is not supported on Windows. ... it probably depends on the web server ... I looked at the decoded Perl script, ... was invoked by PHP, which should have the Web server's permissions, ...
    (Bugtraq)
  • Re: [PHP] Out source files
    ... Is it considered as secure? ... Assuming you control the other server, you can make it as secure as ... Or you could use PHP ftp functions to shuffle them around. ... securing or the PHP script is so badly-written that jumping through ...
    (php.general)