Loading...
 
Skip to main content

Problem in adodb when using Chinese characters in browser title

Status
Pending
Subject
Problem in adodb when using Chinese characters in browser title
Version
2.x
3.x
Category
  • Usability
Feature
Database MySQL (MyISAM)
i18n (Multilingual, l10n, Babelfish)
Site Identity
Database independence (Non-Mysql, ADOdb Postgres, Oracle, etc)
Submitted by
outcrop
Lastmod by
Arild Berg
Rating
(0)
Description

using long Chinese characters as browser title will cause the browser title borken, for example, if you use '机电工程师' as browser title, the browser will show '机电工程帛'.

it's maybe an adodb problem.

Solution

A temp solution is forcing the adodb drivers to use utf8 encoding in the database operating. for example, if you use mysql driver, you can modify function _connect and function _pconnect, add:

@mysql_query("SET NAMES 'utf8'", $this->_connectionID);

beofre:

if ($argDatabasename) return $this->SelectDB($argDatabasename);

in the above two functions.

good luck!

Importance
9 high
Priority
45
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
2539
Created
Wednesday 03 June, 2009 06:30:26 UTC
by Unknown
LastModif
Saturday 08 October, 2011 04:05:32 UTC


Show PHP error messages