Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-09-19 18:41:48

eworkflow
Member
Registered: 2009-09-19
Posts: 10

International fonts

When I access http://forum.textpattern.com/index.php I can see all international fonts displayed in the bottom area of the page.

However, using the same PC and browser, I am unable to see international fonts displayed on the Texpattern-Admin-Preferences-Language page of a TXP I installed on bluehost.com host.

What hosting-related parameter, or any other reason, would be most likely responsible for the above rendering discrepancy?

Offline

#2 2009-09-19 19:27:07

Neko
Member
Registered: 2004-03-18
Posts: 458

Re: International fonts

Character encoding, I guess. My guess is that your server serves contents using 8859-1 while TXP does the same using UTF-8, hence the conflict. If you have the Firefox Web Developer Toolbar check under Information > View Response Headers and see what kind of Content-Type you get.

Offline

#3 2009-09-19 20:24:03

eworkflow
Member
Registered: 2009-09-19
Posts: 10

Re: International fonts

Thanks, Neko, for a fast reply.

Response headers for this forum page:

Date: Sat, 19 Sep 2009 20:15:28 GMT
Server: Apache
Expires: Thu, 21 Jul 1977 07:30:00 GMT
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
Served-By: Joyent
Last-Modified: Sat, 19 Sep 2009 20:15:28 GMT
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 5008
Keep-Alive: timeout=3, max=80
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8

200 OK

Response headers for the Textpattern in question:

Date: Sat, 19 Sep 2009 20:18:02 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 mod_auth_passthrough/2.1 FrontPage/5.0.2.2635
X-Powered-By: PHP/4.4.9
Keep-Alive: timeout=10, max=30
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8

200 OK

I can’t see any meaningful difference above.
I wonder if any coding-related DB or PHP parameter might be at fault here.

Offline

#4 2009-09-19 20:32:23

eworkflow
Member
Registered: 2009-09-19
Posts: 10

Re: International fonts

…on a second look, may “Vary: Accept-Encoding” line be the key difference here?

Offline

#5 2009-09-19 20:57:17

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: International fonts

No, that’s only interesting for proxy servers.
Can you post an URL to the website giving problems?

Offline

#6 2009-09-19 21:14:06

eworkflow
Member
Registered: 2009-09-19
Posts: 10

Re: International fonts

The page in question is a TXP admin panel page (Admin-Preferences-Language) which requires admin login to be visible.

Offline

#7 2009-09-19 22:06:16

eworkflow
Member
Registered: 2009-09-19
Posts: 10

Re: International fonts

Interestingly, a php info script, I run on my Bluehost, returns this output:

㔮㈮

I will contact Bluehost to comment. Thanks for all help.

Offline

#8 2009-09-20 03:15:30

eworkflow
Member
Registered: 2009-09-19
Posts: 10

Re: International fonts

Waiting for Bluehost feedback I have a feeling (!) that my remedy may lay in comment found on http://www.dyeager.org/blog/2008/10/getting-browser-default-language-php.html page:

“…if you’re sending different language-specific content at the same URL, be sure to send the appropriate Vary header. If you don’t, intermediate proxy caches might be confused and serve the wrong language to some people. To do that, just use the following first in your PHP code: header(“Vary: Accept-Language”).”

Is it possible that my problem relates to a Bluehost-based cache confusion?

Offline

#9 2009-09-20 12:02:34

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: International fonts

Nope. There’s a difference between language and character-set.

If you had an admin interface that would show in English, German, Dutch, French depending on the Accept-language header sent by the browser, using that Vary header would help fix the problem that a German user would see an Dutch admin page that was cached by the proxy.

In this case, there appears to be a mix-up of character sets for example the use of latin1 versus utf-8. Could be many things:
  • application (not likely, because it also happens in your phpinfo script which is separate from TXP)
  • server
  • proxy
  • client (try a different browser!)

Offline

#10 2009-09-20 17:26:05

eworkflow
Member
Registered: 2009-09-19
Posts: 10

Re: International fonts

I actually tried 3 different computers with 3 different OS and about 10 browsers – all render the same wrong fonts for TXP Language panel.
So, as I follow you, all roads lead to Bluehost, which is expected since I don’t observe any other font rendering problem on my side on any other host.

This problem, although apparently not a common one, is a deal-breaker for me since I need to administer English, French and Arabic content for my non-profit client. When resolved, however, it will result in my Paypal contribution to TXP because it is a gem nevertheless.

Offline

#11 2009-09-21 15:45:30

eworkflow
Member
Registered: 2009-09-19
Posts: 10

Re: International fonts

I got a reply from Bluehost which is in part quoted on the next line:

..it looks like textpattern is not installing with the right character set. This should fix your issue: http://wiki.zoelife4u.org/index.php/Convert_That_DB

My TXP install on Bluehost was done using their script, called SimpleScripts, that also auto-created the TXP-bound DB. At this moment I am not sure if the problem is caused by the TXP and SimpleScript incompatibility or a problem is contained in the TXP 4.2.0 distribution. Also, consequently, if I should follow their above remedy or just reinstall TXP manually.

Can anybody comment, please? Thanks in advance.

Offline

#12 2009-09-21 15:57:10

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: International fonts

Please post your full diagnostics (admin => diagnostics => select ‘full’)

Offline

#13 2009-09-21 16:11:39

eworkflow
Member
Registered: 2009-09-19
Posts: 10

Re: International fonts

My full-detail diagnostics:

Textpattern version: 4.2.0 (r3275)
Last Update: 2009-08-29 01:27:23/2009-08-28 19:31:19
Document root: /home1/etoolbox/public_html
$path_to_site: /home1/etoolbox/public_html/main
Textpattern path: /home1/etoolbox/public_html/main/textpattern
Permanent link mode: section_id_title
upload_tmp_dir: /home1/etoolbox/public_html/temp/
Temporary directory path: /home1/etoolbox/public_html/main/textpattern/tmp
Site URL: www.e-toolbox.net/main
PHP version: 5.2.9
GD Image Library: version bundled (2.0.34 compatible), supported formats: GIF, JPG, PNG
Server TZ: America/Denver
Server Local Time: 2009-09-21 10:09:36
DST enabled?: 1
Automatically adjust DST setting?:
Time Zone: GMT+05.0 (18000)
MySQL: 5.0.81-community-log
Locale: en_US.UTF-8
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 mod_auth_passthrough/2.1 FrontPage/5.0.2.2635
PHP Server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 2.6.28-10.7.intel.E1000E.BHsmp
Admin-side theme: remora 4.2.0

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes

<IfModule mod_rewrite.c> RewriteEngine On #RewriteBase /relative/web/path/

RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*) index.php

RewriteCond %{HTTP:Authorization} !^$ RewriteRule .* – [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

————————————

Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_filesystem: binary
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
17 Tables: OK

10 Custom Fields: custom_1, custom_2, custom_3, custom_4, custom_5, custom_6, custom_7, custom_8, custom_9, custom_10 (10)

PHP extensions: zip/1.8.11, libxml, xsl/0.1, xmlwriter/0.1, xmlrpc/0.51, dom/20031129, xmlreader/0.1, xml, tokenizer/0.1, tidy/2.0, session, pcre, SimpleXML/0.1, sockets, soap, SPL/0.2, standard/5.2.9, Reflection/0.1, pspell, posix, pgsql, mysqli/0.1, mysql/1.0, mime_magic/0.1, mhash, mcrypt, mbstring, json/1.2.1, imap, iconv, hash/1.0, gettext, gd, ftp, filter/0.11.0, exif/1.4 $Id: exif.c,v 1.173.2.5.2.27 2008/12/31 11:17:37 sebastian Exp $, date/5.2.9, curl, ctype, calendar, bz2, bcmath, zlib/1.1, openssl, cgi-fcgi, PDO/1.0.4dev, pdo_sqlite/1.0.1, SQLite/2.0-dev, pdo_mysql/1.0.2, ionCube Loader, Zend Optimizer

pretext_data: array ( ‘id’ => ‘’, ‘s’ => ‘’, ‘c’ => ‘’, ‘q’ => ‘’, ‘pg’ => ‘’, ‘p’ => ‘’, ‘month’ => ‘’, ‘author’ => ‘’, ‘request_uri’ => ‘/main/7e6b8456d10c853635b3f9b2e186ace9/?txpcleantest=1’, ‘qs’ => ‘txpcleantest=1’, ‘subpath’ => ‘\\/main\\/’, ‘req’ => ‘/7e6b8456d10c853635b3f9b2e186ace9/?txpcleantest=1’,
)

/home1/etoolbox/public_html/main/index.php: r3189 (8becf5ea8d9ced7d05b2433dfbabf868)
/home1/etoolbox/public_html/main/css.php: r3189 (7a0cc56c9dc585e56aab80bc0fb22c53)
/home1/etoolbox/public_html/main/textpattern/css.php: r3189 (459137eeb00bb07136001528ce724192)
/home1/etoolbox/public_html/main/textpattern/include/txp_admin.php: r3203 (26c4f327450f66618fe82b06fb8b9e70)
/home1/etoolbox/public_html/main/textpattern/include/txp_article.php: r3246 (9211f37e8ba873c78b0c46186896d6b2)
/home1/etoolbox/public_html/main/textpattern/include/txp_auth.php: r3250 (6be154f05fca4e83c4a4947c8635afd7)
/home1/etoolbox/public_html/main/textpattern/include/txp_category.php: r3203 (2350c33b6acc663b56ba982bc479c920)
/home1/etoolbox/public_html/main/textpattern/include/txp_css.php: r3118 (bfd945a0b268c60f7b71b6535c06154e)
/home1/etoolbox/public_html/main/textpattern/include/txp_diag.php: r3267 (c03f4b7e28c2f8e5050924b6caf2f61f)
/home1/etoolbox/public_html/main/textpattern/include/txp_discuss.php: r3185 (9b08de9e4f2df7160105ff218134ec67)
/home1/etoolbox/public_html/main/textpattern/include/txp_file.php: r3200 (dc26e8f4cbb1821c466c14926c8a10ca)
/home1/etoolbox/public_html/main/textpattern/include/txp_form.php: r3260 (6ad789075a6a1811d027f5e4043b845d)
/home1/etoolbox/public_html/main/textpattern/include/txp_image.php: r3267 (814b6421cb2e2df073d0d6bf05c252bf)
/home1/etoolbox/public_html/main/textpattern/include/txp_import.php: r3203 (fb18d629321a93472674dbd4abbfc63c)
/home1/etoolbox/public_html/main/textpattern/include/txp_link.php: r3203 (7dee2f899aa22712e4f5f1005c6853b0)
/home1/etoolbox/public_html/main/textpattern/include/txp_list.php: r3203 (2dd80b98cb76b0532133f6d7c2bcccb9)
/home1/etoolbox/public_html/main/textpattern/include/txp_log.php: r3203 (a97af8e5ed62605ab0111e45266300cb)
/home1/etoolbox/public_html/main/textpattern/include/txp_page.php: r3260 (ef00267f34445a33ce0f2e453c3a20db)
/home1/etoolbox/public_html/main/textpattern/include/txp_plugin.php: r3203 (8c1691e89ccfc8a8f9160e66efce2b09)
/home1/etoolbox/public_html/main/textpattern/include/txp_prefs.php: r3235 (9833b1a7cbd01def4ceb40f8cdf01a3b)
/home1/etoolbox/public_html/main/textpattern/include/txp_preview.php: r1238 (cc7d08574508c8ec1e4c5281d534d6e3)
/home1/etoolbox/public_html/main/textpattern/include/txp_section.php: r3203 (1c7eec911a015b72e42d5cea903be426)
/home1/etoolbox/public_html/main/textpattern/include/txp_tag.php: r3195 (280f0fd2e6f50e6a0f13490ea5dfc1f4)
/home1/etoolbox/public_html/main/textpattern/index.php: r3275 (6e259f5394d65617809d25e4823de174)
/home1/etoolbox/public_html/main/textpattern/jquery.js: unknown (bb381e2d19d8eace86b34d20759491a5)
/home1/etoolbox/public_html/main/textpattern/lib/IXRClass.php: r2932 (6c533bb271087338aa19ca0b78b1810f)
/home1/etoolbox/public_html/main/textpattern/lib/admin_config.php: r3202 (524b829d7c73e5db26415633e799e350)
/home1/etoolbox/public_html/main/textpattern/lib/class.thumb.php: r3107 (0e3f7b9da4b0c77f9b75263142598902)
/home1/etoolbox/public_html/main/textpattern/lib/classTextile.php: r2812 (b3e4cd9bd5fb469fabdebb2c0376f7e7)
/home1/etoolbox/public_html/main/textpattern/lib/constants.php: r3133 (b296756aedaf98b6f9420359dd07abdb)
/home1/etoolbox/public_html/main/textpattern/lib/taglib.php: r2868 (a0662fa399fb16e837e8852f044dade9)
/home1/etoolbox/public_html/main/textpattern/lib/txplib_admin.php: r3047 (54de3f807984122ebe9b8b955e5189f4)
/home1/etoolbox/public_html/main/textpattern/lib/txplib_db.php: r3250 (c29e316100ae6ed42d6ec51506388b5f)
/home1/etoolbox/public_html/main/textpattern/lib/txplib_forms.php: r3256 (2623d94099735edc0e7a51309c26665d)
/home1/etoolbox/public_html/main/textpattern/lib/txplib_head.php: r3265 (4492de4935f8352357f0809d9d89516f)
/home1/etoolbox/public_html/main/textpattern/lib/txplib_html.php: r3255 (adb712630ad3bbe59c5f716befa33f0a)
/home1/etoolbox/public_html/main/textpattern/lib/txplib_misc.php: r3271 (68d443f0f20acec5e86857a823c2b4e2)
/home1/etoolbox/public_html/main/textpattern/lib/txplib_theme.php: r3269 (83bcbeffa883bed5f0af951dda7be2fb)
/home1/etoolbox/public_html/main/textpattern/lib/txplib_update.php: r2812 (5e6821f06aeafe50b54e5a273423384f)
/home1/etoolbox/public_html/main/textpattern/lib/txplib_wrapper.php: r2931 (1c1b260a13c67657f1678d72559583bc)
/home1/etoolbox/public_html/main/textpattern/publish.php: r3258 (bc931a3406370c1ea4139ef957e95e38)
/home1/etoolbox/public_html/main/textpattern/publish/atom.php: r3029 (f8cc6dbfb5a5f2b39ec480589b2d59c3)
/home1/etoolbox/public_html/main/textpattern/publish/comment.php: r3266 (815df18aa4d451246ee70dd0502a8484)
/home1/etoolbox/public_html/main/textpattern/publish/log.php: r3247 (1c047309f6f13883b29a943d1cddec3a)
/home1/etoolbox/public_html/main/textpattern/publish/rss.php: r3029 (c39570953c1bd8347e456d750317b815)
/home1/etoolbox/public_html/main/textpattern/publish/search.php: r2812 (29a315e2435b73fe3d3a4d83fe84ba19)
/home1/etoolbox/public_html/main/textpattern/publish/taghandlers.php: r3256 (a40dce2989737477b1147d2104bba326)
/home1/etoolbox/public_html/main/rpc/index.php: r2998 (682e18cb9bdd6e9442a9ac23db1a591f)
/home1/etoolbox/public_html/main/rpc/TXP_RPCServer.php: r3250 (84ff888bf577670c897fdc27ad580c0f)
/home1/etoolbox/public_html/main/textpattern/theme/classic/classic.php: r3191 (722c6c7f2c8dbfee5c6cede0af2cd689)
/home1/etoolbox/public_html/main/textpattern/update/_to_1.0.0.php: r3047 (cbd20d275bf74184b1112569c2e77f76)
/home1/etoolbox/public_html/main/textpattern/update/_to_4.0.2.php: r3047 (4c9f8cd5c16bf19ff191ab35f0354e0f)
/home1/etoolbox/public_html/main/textpattern/update/_to_4.0.3.php: r3047 (6a4af33a23caf950c05faca0e8b4c93b)
/home1/etoolbox/public_html/main/textpattern/update/_to_4.0.4.php: r3047 (b235e2a27a6e79652ef078f62f73eb21)
/home1/etoolbox/public_html/main/textpattern/update/_to_4.0.5.php: r2894 (d17a02f48b79dbe6b3b0cf6eb779aadb)
/home1/etoolbox/public_html/main/textpattern/update/_to_4.0.6.php: r3047 (4d7b21635fbf46058cc539a0eec00561)
/home1/etoolbox/public_html/main/textpattern/update/_to_4.0.7.php: r3014 (e8ba7dc2892b81ce89b62775e2f5ea17)
/home1/etoolbox/public_html/main/textpattern/update/_to_4.0.8.php: r3057 (d699021db8e7c9f7d32f3ad3631caebc)
/home1/etoolbox/public_html/main/textpattern/update/_to_4.2.0.php: r3233 (aec6e4aafa98dbafe75506efd7f85816)
/home1/etoolbox/public_html/main/textpattern/update/_update.php: r3275 (e9085d568d49ff7910ffd4eb49bbe293)

————————————

Offline

#14 2009-09-21 18:05:09

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: International fonts

If TXP wasn’t installed manually (and assuming you haven’t spent time on design or content), I’d start from scratch, deleting all TXP files and database tables and then reinstall a fresh copy of textpattern software manually.
I don’t see anything strange in the diagnostics, but it could very well be a problem with the installation scripts that Bluehost offers. I think it’s strange that you have to fix a problem that arises when using their installation scripts.

Offline

#15 2009-09-21 23:38:19

eworkflow
Member
Registered: 2009-09-19
Posts: 10

Re: International fonts

I reinstalled TXP on Bluehost manually and I ended with proper characters displayed on the Langue panel. Also, I suggested that Bluehost review their SimpleScript for Textpattern so nobody else goes through it.

Thanks all for your help.

Offline

Board footer

Powered by FluxBB