Wyszukiwarka MP3 | Web Edit | Twoje IP | Reklama za darmo
Witamy, Gość. Zaloguj się lub zarejestruj.
Czy dotarł do Ciebie email aktywacyjny?


Strony: [1]

Autor Wątek: Polskie znaki w MySQL  (Przeczytany 413 razy)

Fuv

  • Global Moderator

  • Bywalec
  • *****
  • Offline Offline
  • Płeć: Mężczyzna
  • Wiadomości: 69
  • GG: 9083444
  • Języki: (X)HTML, CSS, PHP, SQL, JS, C/C++, Pascal
  • Programmer
    • Zobacz profil
    • WWW
Polskie znaki w MySQL
« : Lipiec 20, 2009, 20:31:11 »
Chwalebny pierwszy post w tym dziale :D

W jaki sposób mogę zrobić, aby w bazie danych(baza jest od cba.pl) móc przechowywać polskie znaki? Jak dodaję to wyświetlają mi się jakieś chińskie znaki. Coś próbowałem robić, zmienić kodowanie czy coś, ale teraz za miast tego mam znaki zapytania.
Dodam, że łączę się z bazą danych za pomocą PHP.
Zapisane
Wróg mojego wroga to mój przyjaciel.
Im więcej wrogów tym większy zaszczyt.

DJ Mentos

  • Administrator

  • Uzależniony od forum
  • *****
  • Offline Offline
  • Płeć: Mężczyzna
  • Wiadomości: 564
  • GG: 6656564
  • Języki: Delphi, C++, PHP, HTML, JS
    • Zobacz profil
    • WWW
Odp: Polskie znaki w MySQL
« Odpowiedź #1 : Lipiec 20, 2009, 21:29:24 »
Krzaczory wyświetlane są na stronie przy pobieraniu danych z bazy, tak?
Czy w ogóle w bazie są już przechowywane w postaci krzaków?

Zobaczy czy na wszystkich plikach jest to samo kodowanie. Jeśli tak i błąd dalej występuje to tuż po połączeniu z bazą danych wyślij 3 takie zapytania:

mysql_query("SET character_set_connection=utf8");
mysql_query("SET character_set_client=utf8");
mysql_query("SET character_set_results=utf8");

W miejsce utf8 możesz wstawić własne kodowanie, które używasz.
« Ostatnia zmiana: Lipiec 20, 2009, 21:32:10 wysłana przez DJ Mentos »
Zapisane

Fuv

  • Global Moderator

  • Bywalec
  • *****
  • Offline Offline
  • Płeć: Mężczyzna
  • Wiadomości: 69
  • GG: 9083444
  • Języki: (X)HTML, CSS, PHP, SQL, JS, C/C++, Pascal
  • Programmer
    • Zobacz profil
    • WWW
Odp: Polskie znaki w MySQL
« Odpowiedź #2 : Lipiec 21, 2009, 10:51:37 »
W dalszym ciągu brak rezultatów. W bazie danych wciąż znaki zapytania.

Zapytanie tworzące tabele:
$zapytanie="CREATE TABLE `index_news`(indexid INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, nick VARCHAR(30) NOT NULL, data DATETIME NOT NULL, tytul VARCHAR(40) NOT NULL, tresc TEXT NOT NULL)";
Zapisane
Wróg mojego wroga to mój przyjaciel.
Im więcej wrogów tym większy zaszczyt.

DJ Mentos

  • Administrator

  • Uzależniony od forum
  • *****
  • Offline Offline
  • Płeć: Mężczyzna
  • Wiadomości: 564
  • GG: 6656564
  • Języki: Delphi, C++, PHP, HTML, JS
    • Zobacz profil
    • WWW
Odp: Polskie znaki w MySQL
« Odpowiedź #3 : Lipiec 21, 2009, 10:57:17 »
Spróbuj tak stworzyć tabele:

$zapytanie="CREATE TABLE `index_news`(indexid INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, nick VARCHAR(30) NOT NULL, data DATETIME NOT NULL, tytul VARCHAR(40) NOT NULL, tresc TEXT NOT NULL) DEFAULT CHARSET=utf8";

Fuv

  • Global Moderator

  • Bywalec
  • *****
  • Offline Offline
  • Płeć: Mężczyzna
  • Wiadomości: 69
  • GG: 9083444
  • Języki: (X)HTML, CSS, PHP, SQL, JS, C/C++, Pascal
  • Programmer
    • Zobacz profil
    • WWW
Odp: Polskie znaki w MySQL
« Odpowiedź #4 : Lipiec 21, 2009, 11:08:11 »
Dzięki. Wszystko działa  ;D
Zapisane
Wróg mojego wroga to mój przyjaciel.
Im więcej wrogów tym większy zaszczyt.

baboyes


  • One Star User
  • *
  • Offline Offline
  • Płeć: Mężczyzna
  • Wiadomości: 5
    • Zobacz profil
Odp: Polskie znaki w MySQL
« Odpowiedź #5 : Wrzesień 02, 2010, 08:14:18 »
Retail powerhouses like Wal-Mart, Target, Tesco, and Metro now insist that their business partners get on board with radio frequency identification (RFID). Although this fact alone suggests that a large number of suppliers will soon be RFID-savvy, it's also becoming apparent that RFID is making its own case. According to a recent Accenture survey, 47 percent of North American manufacturing executives anticipate getting a high return on their RFID investments.
Wow power leveling,
Admittedly,Wow power leveling survey respondents are focusing primarily on short-term benefits: 48 percent of respondents cited improved track-and-trace of shipment lots as a key benefit; 45 percent cited improved recall management; and 41 percent cited better shipping and receiving. Fewer respondents said they are emphasizing longer-term, planning-related benefits such as less inventory and working capital, improved revenue through reduction of out-of-stocks, and reduced expediting costs.
aion kinah,
Although companies may still be unclear about the long-term advantages,aion kinah RFID appears to have turned a corner. With more companies developing collaborative relationships, RFID is an excellent way to enhance the following:
Finished-goods inventory visibility: Hiking performance levels in shipping and receiving, labor productivity, order accuracy, and returns processing.
Production visibility: Improving accuracy of raw material receipts, work-in-process inventory management, and receiving-labor productivity.
Designer Glasses,
Asset visibility: Designer Glasses Raising asset utilization through better tracking of vehicles, reusable containers, and other high-value assets.
Another reason for RFID's ascension is its scope. Although many of them are being forced to adopt this technology, RFID-related benefits to consumer goods manufacturers are real, with potential for improving the accuracy of supply chain processes such as forecasting for demand planning.
cheap aion kinah,
However,cheap aion kinah RFID also will likely ratchet up retailers' operating performance by making it possible to tag merchandise at various levels, automate key distribution center processes, and reduce delivery lead times. Freight companies are other potential beneficiaries: They could save millions by identifying inefficiencies in delivery operations and by automatically tracking assets.
maple story mesos,
And finally,maple story mesos consider the pharmaceutical industry, where Electronic Product Codes (EPCs) that are integrated across the supply chain have the potential to curtail counterfeiting, streamline reverse logistics, and reduce out-of-stocks and returns. Companies could save up to 5 percent from increased labor productivity and reduced shrinkage, and reduce working and fixed capital from 5 percent to 30 percent—cabal alz the result of optimized inventory levels and superior asset utilization.
cabal alz,
Zapisane
Strony: [1]
 

Powered by SMF 2.0 RC1.2 | SMF © 2006–2008, Simple Machines LLC - © Copyright 2007 - 2009 by Centrum Informatyczne Królnet
Kopiowanie artykułów bez zgody zabronione - programowanie delphi ansi c c++ pascal object webmastering html php

RSS | WAP2