Tarih: 2005-03-29, 16:27:46 Mesaj konusu: sql de karakter sorunu
merhaba ben hostumu başka bir yere taşıdım sql imi aktardım herşey yerli yerine oturdu hiç bir sorun yok ama türkçe karakterler dışında şuanda sitede birşey ekleyince veya yazınca türkçe karakter sorunu yok ama eski yükledimğim bilgilerde tr karakterler çıkmıyor bunu nasıl halledebiliriz.
Tarih: 2005-03-29, 23:36:38 Mesaj konusu: Re: sql de karakter sorunu
En Çok İndirilen
Dosyalar
· 1: Gylly Ali Diyatör - Gladyatör Elazy? Versiyonu
[İndirme: 477]
· 2: Rondo Reklam Müzi?i Funda - Affetmem
[İndirme: 132]
· 3: FIFA 2005 FULL
[İndirme: 91]
· 4: Ata Demirer Vestel Kamera Arkasy
[İndirme: 88]
Yahoo, mail alanyny 1 GB’a çykaryyor
Yahoo bugün yapty?y açyklamada, giderek yo?unla?an rekabet ortamynda geri kalmamak için çok yakynda bedava olan e-posta hesaby alanyny 4 kat artyrarak 1 GB’a çykaraca?yny duyurdu.Bu sayede Yahoo, 1 GB’lyk alan sunan Google servisi Gmail ile rekabeti yo?unla?tyracak...
işte böyle nasıl düzelteceğim sql den birşey mi yapmam gerek?
Tarih: 2005-03-31, 04:30:16 Mesaj konusu: Re: sql de karakter sorunu
CHARACTER SET diye bir komut varmı bu komutla değiştirelim sql den latin1_swedish_ci yapalım ben bikaç bişey buldum ama çok iyi anlamadım
Internationalization (New in Version 4.1)
MySQL (itself) has been internationalized for quite some time. The messages produced by MySQL have been translated into over 20 languages. By default, MySQL also provides as many character sets to choose from when starting MySQL. By selecting the character set appropriate for your data, you ensure that MySQL sorts records appropriately in queries that use ORDER BY, and performs string comparisons as appropriate for the character set.
However, if you need to store data in multiple character sets, MySQL 3.23 doesn't offer much help. You can change the server's default character set using the --default-character-set option at start-up time, but that's about it. Starting in version 4.1, you'll be able to set the default character set on a per database, per table, and per column basis.
To set the default character set on the database "beer" to German, simple execute:
CREATE DATABASE beer DEFAULT CHARACTER SET latin1;
To create a table to store Unicode text encoded as UTF-8, specify the character set at the end of the CREATE TABLE statement:
CREATE TABLE unicode_stuff (
...
) CHARACTER SET utf8;
And to create a table to hold data in multiple character sets, specify each field's character set explicitly. See Listing Two. Notice that each text field uses a different character set.
CREATE TABLE intl_strings (
id INTEGER UNSIGNED AUTO_INCREMENT PRIMARY KEY,
german_string VARCHAR(255) CHARACTER SET latin1,
japanese_string VARCHAR(255) CHARACTER SET utf8,
enlish_us_string VARCHAR(255) CHARACTER SET latin1,
chinese_string VARCHAR(255) CHARACTER SET big5
);
If you don't specify a character set, all text columns automatically inherit the table's character set. Tables inherit the database's character set, and databases inherit the server's character set.
After upgrading to MySQL 4.1, you may need to adjust the character sets of databases, tables, and columns. To do so, you can use the appropriate ALTER command. For example, to change a database's default character set:
ALTER DATABASE beer DEFAULT CHARACTER SET latin1;
And to reset a database's character set back to the server's default:
ALTER DATABASE beer DEFAULT CHARACTER SET DEFAULT;
Similarly, you can use ALTER TABLE to set a table's character set:
ALTER TABLE messy_stuff CHARACTER SET big5;
And individual columns can be modified as well. Simply provide the new column definition:
ALTER TABLE messy_stuff MODIFY chinese VARCHAR(255) CHARACTER SET big5;
There is also a SHOW CHARACTER SET command to ask MySQL which character sets it can support.
SHOW CHARACTER SET;
+----------+-----------------------------+---------------------+--------+
| Charset | Description | Default collation | Maxlen |
+----------+-----------------------------+---------------------+--------+
| big5 | Big5 Traditional Chinese | big5 | 2 |
| dec8 | DEC West European | dec8_swedish_ci | 1 |
| cp850 | DOS West European | cp850_general_ci | 1 |
| hp8 | HP West European | hp8_english_ci | 1 |
| koi8r | KOI8-R Relcom Russian | koi8r_general_ci | 1 |
| latin1 | ISO 8859-1 West European | latin1_swedish_ci | 1 |
| latin2 | ISO 8859-2 Central European | latin2_general_ci | 1 |
| swe7 | 7bit Swedish | swe7_swedish_ci | 1 |
| ascii | US ASCII | ascii_general_ci | 1 |
| ujis | EUC-JP Japanese | ujis | 3 |
| sjis | Shift-JIS Japanese | sjis | 2 |
| cp1251 | Windows Cyrillic | cp1251_bulgarian_ci | 1 |
| hebrew | ISO 8859-8 Hebrew | hebrew | 1 |
| tis620 | TIS620 Thai | tis620 | 1 |
| euckr | EUC-KR Korean | euckr | 2 |
| koi8u | KOI8-U Ukrainian | koi8u_general_ci | 1 |
| gb2312 | GB2312 Simplified Chinese | gb2312 | 2 |
| greek | ISO 8859-7 Greek | greek | 1 |
| cp1250 | Windows Central European | cp1250_general_ci | 1 |
| gbk | GBK Simplified Chinese | gbk | 2 |
| latin5 | ISO 8859-9 Turkish | latin5_turkish_ci | 1 |
| armscii8 | ARMSCII-8 Armenian | armscii8_general_ci | 1 |
| utf8 | UTF-8 Unicode | utf8 | 3 |
| ucs2 | UCS-2 Unicode | ucs2 | 2 |
| cp866 | DOS Russian | cp866_general_ci | 1 |
| keybcs2 | DOS Kamenicky Czech-Slovak | keybcs2 | 1 |
| macce | Mac Central European | macce | 1 |
| macroman | Mac West European | macroman | 1 |
| cp852 | DOS Central European | cp852_general_ci | 1 |
| latin7 | ISO 8859-13 Baltic | latin7_general_ci | 1 |
| cp1256 | Windows Arabic | cp1256_general_ci | 1 |
| cp1257 | Windows Baltic | cp1257_ci_ai | 1 |
| binary | Binary pseudo charset | binary | 1 |
+----------+-----------------------------+---------------------+--------+
33 rows in set (0.00 sec)
Tarih: 2005-03-31, 07:56:08 Mesaj konusu: Re: sql de karakter sorunu
şimdi bende localde şiir modulunde aynı sorunla karşılaştım baya bi uğraştıktan sonra şu kanıya vardım. phpmyadmin türkçe karakterleri işleyemiyor.
şimdi şiir modulunden yeni bi şiir eklediğim zaman
çıkan satır
Anlatamýyorum
şeklindeyken
önceki import edilen şiirler
Anlars?n
şeklinde oluyor.
bu sorunu öyle zannediyorum ki adam akıllı bir unicode editor ile tüm türkçe karakterleri değiştirmekten geçiyor. fakat oda işe yaramadı yani olay büyük bi ihtimalle phpmyadmin den kaynaklanıyor.
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız