Skip to content
View in the app

A better way to browse. Learn more.

Thailand News and Discussion Forum | ASEANNOW

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Php/mysql Problem With Thai Langue

Featured Replies

I would like to make an English/Thai website

I get a table here english and thai words are submitted into (as a dictionary)

In my phpmyadmin/mysql table, the english shows correct and also does the Thai characters

when I want to output this in a webpage in PHP, I got my english normal but my Thai equivalent shows as ?????? in stead of thai characters

I used utf8 or windows 874 als page definition, but no difference

anyone that could help me ?

In my phpmyadmin/mysql table, the english shows correct and also does the Thai characters

when I want to output this in a webpage in PHP, I got my english normal but my Thai equivalent shows as ?????? in stead of thai characters

I used utf8 or windows 874 als page definition, but no difference

To make much progress, we need to know:

(1) The content of the META http-equiv=Content-Type tag on the generated web page.

(2) The sequence of bytes actually emitted for the Thai text.

Does overriding the encoding in the browser make any difference? Which browsers were you using? Did you really see a row of question marks? If you got question marks it looks as though something emitted Windows 874 when UTF-8 was expected. I take it your browser can display Thai, and will do so even if the web page specifies a font with no Thai characters.

ํYou need to set the charset/collation in Mysql too, that can be quite confusing as it can be done at server, table and/or column level. The default is Swedish as far as I remember.

Also php doesn't support Unicode, so if you're storing the data in UTF-8 and then using string manipulation functions in php that could cause problems. Maybe that's what phpmyadmin is doing ? Could be worth trying using www.sqlyog.com too and see if the problem still happens.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.