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.

Multiple language website

Featured Replies

Hi

I'm working on a website for a friend. He wants the site to be available in multiple languages.

I set up an SQL table called languages with two fields the first field is the language code (EN, TH etc.) and the second contains the wording in that foreign language (English, ภาษาไทย). The second field is datatype nvarchar(max). When I look at the content of the table in SQL Server Management Studio everything looks fine (various languages are displayed correctly).

The problem is that, when I extract the language data from the table and try and display them in a page, the foreign languages come out as ?????

I've Googled until my fingers are numb testing various suggestions concerning the doctype and utf-8 and many, many other things but I cannot get the languages to display correctly in any screen.

I was wondering if anyone out there has accomplished the above (multiple languages on a page) and can paste a simple HTML example (<html> down to </html>) that I can use to finally get passed this problem.

Thanks, fingers crossed,

Mick

Utf8 will do it, but need to make sure it is utf8 every step of the route from final html output (html charset attribute) to the database tables and every transport/processing step in between.

Im linux not ms so cant give specifics but fairly sure these steps will lead you towards the solution.

Crikey. You are reinventing the wheel. Why not just use Wordpress and a language plug-in?

^^^ ...or a CMS that already supports multiple languages.

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.