Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-20 19:41:24

ghareeb
New Member
Registered: 2005-10-20
Posts: 8

Publishing Arabic Text

Hi all;

I liked Textp, and I am trying to use it for publishing Arabic ( I do not need full translation, though this may come latter !!). All I need for now is to be able to Type the Title in Arabic, as well as publish articles or comments in Arabic. I figured so long TEXTP is Unicode, this should be easy, however so far I have not been able to get more than ????? . Would appreciate any help.

Thanks
Ghareeb

Offline

#2 2005-10-20 19:54:57

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Publishing Arabic Text

Looks like a problem with your server/browser/installation, it works for me. Please post your diagnostics (high level, if you have mysql4.1.x; otherwise lowlevel is fine) and provide a link to the site, best with an entry where comments are enabled.

Offline

#3 2005-10-20 20:20:18

ghareeb
New Member
Registered: 2005-10-20
Posts: 8

Re: Publishing Arabic Text

Thanks Sencer;

The connection is :http:\\www.icc2go.com\~textp

Here is the result of Diag:

Textpattern version: 4.0.1 (r888)
last_update: 2005-10-12 18:43:49/2005-09-06 12:58:23
Document root: /var/www/html
$path_to_site: /home/textp/public_html
Textpattern path: /home/textp/public_html/textpattern
Permanent link mode: section_id_title
Temp folder: /tmp
Site URL: icc2go.com/~textp
PHP version: 5.0.4
Magic quotes: 0/0
MySQL: 4.1.11
Locale: en_US.UTF-8
Server: Apache/2.0.54 (Fedora)
Apache version: Apache/2.0.54 (Fedora)

Pre-flight check:
————————————
.htaccess file is missing
————————————

Offline

#4 2005-10-21 01:22:36

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Publishing Arabic Text

What browser are you using? Can you check the character encoding it’s using when viewing the textpattern > content > write page? (In Firefox, go to View/Character Encoding – it should show a tick beside UTF-8)


Alex

Offline

#5 2005-10-21 09:16:47

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Publishing Arabic Text

Hmmm, I am also getting the question marks when I just try out the preview for comments on that site. However the HTTP-Headers are utf-8, and also the meta-header in the html is set to utf8. This is very odd, never seen this before.

1. Can you please post the high level version of your diagnostic?
2. Do you have any plugins installed? If yes, please disable them.
3. Have you made any modifications to any of the files that textpattern uses?
4. Do you know if your host uses any kind of filters, proxies or anything similar?

Offline

#6 2005-10-21 19:25:38

ghareeb
New Member
Registered: 2005-10-20
Posts: 8

Re: Publishing Arabic Text

To Zem;
Thanks, I checked the encoding on IE6 and Firefox. But no luck.

To Sencer; Thanks
1-What do you mean by “High level version of diagnostic” and how I get to it?
2- No, and as you may see it is just textpattern with no plugins.
3-Nop, no modification, and will be glad to reinstall it.
4- I am the host, I run the server Fedora 4, no filter, nor proxiies

I do appreciate your help, and hope this will; help others too.

Regards to uou all

Offline

#7 2005-10-21 19:48:27

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Publishing Arabic Text

re 1: On the diagnostics screen look at the bottom, there is a drop-down box which you can set to high level.

Offline

#8 2005-10-21 20:12:07

ghareeb
New Member
Registered: 2005-10-20
Posts: 8

Re: Publishing Arabic Text

Senser;

Here is the result, it looks the same to me, but you may see something else!!

Pre-flight check
.htaccess file is missing ?
Diagnostic info
Textpattern version: 4.0.1 (r888)
last_update: 2005-10-12 18:43:49/2005-09-06 12:58:23
Document root: /var/www/html
$path_to_site: /home/textp/public_html
Textpattern path: /home/textp/public_html/textpattern
Permanent link mode: section_id_title
Temp folder: /tmp
Site URL: icc2go.com/~textp
PHP version: 5.0.4
Magic quotes: 0/0
MySQL: 4.1.11
Locale: en_US.UTF-8
Server: Apache/2.0.54 (Fedora)
Apache version: Apache/2.0.54 (Fedora)

Pre-flight check:
————————————
.htaccess file is missing
————————————

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

PHP extensions: yp, xml, wddx, tokenizer/0.1, sysvshm, sysvsem, sysvmsg, standard/5.0.4, SPL, sockets, SimpleXML, shmop, session, pspell, posix, pcre, mime_magic/0.1, iconv, gmp, gettext, ftp, exif/1.4 $Id: exif.c,v 1.162.2.8 2005/03/17 17:20:35 iliaa Exp $, dio/0.1, dbx, curl, ctype, calendar, bz2, zlib/1.1, openssl, libxml, apache2handler, ldap, mbstring, mysql, mysqli/0.1, odbc/1.0

Apache modules: core, prefork, http_core, mod_so, mod_access, mod_auth, mod_auth_anon, mod_auth_dbm, mod_auth_digest, util_ldap, mod_auth_ldap, mod_include, mod_log_config, mod_env, mod_mime_magic, mod_cern_meta, mod_expires, mod_deflate, mod_headers, mod_usertrack, mod_unique_id, mod_setenvif, mod_mime, mod_dav, mod_status, mod_autoindex, mod_asis, mod_info, mod_dav_fs, mod_vhost_alias, mod_negotiation, mod_dir, mod_imap, mod_actions, mod_speling, mod_userdir, mod_alias, mod_rewrite, mod_proxy, proxy_ftp, proxy_http, proxy_connect, mod_cache, mod_suexec, mod_disk_cache, mod_file_cache, mod_mem_cache, mod_cgi, mod_auth_mysql, mod_perl, mod_php5, mod_python, mod_ssl

/include/txp_category.php: r628 (e92f8775125b69b1170e9026e7ab0d26)
/include/txp_plugin.php: r758 (3381ca79884afdf8d625d68ce62760eb)
/include/txp_auth.php: r716 (3a2a9e9b3a3d94527268434e9eb9e278)
/include/txp_form.php: r881 (f98d88fb56ee4c39e32329c9ad8161ef)
/include/txp_section.php: r685 (5cae4258cd1065c36b787eb22605c0a3)
/include/txp_tag.php: r650 (c4d9210382c5c2779f5454770cf2ac17)
/include/txp_list.php: r856 (1a3e54c0a007cee4fc5d129ad5ebe199)
/include/txp_page.php: r876 (e22dc37b465b87757722732a225b25f3)
/include/txp_discuss.php: r871 (66974d590659b6e6c8d550dc44b8ba78)
/include/txp_prefs.php: r765 (df266d038fd2bfa1c6f18b199de9e94a)
/include/txp_log.php: r628 (957a21ed9e3a7a088f9c25c927ff8e44)
/include/txp_preview.php: r628 (a16f84b6610fc66db0bce51e25b7af34)
/include/txp_image.php: r679 (c25abb0c3477e0279836e0dc202dea47)
/include/txp_article.php: r877 (3f230bd32f6fd44e289fad90db1e9172)
/include/txp_css.php: r628 (59d9f0d473ed3beab571674b1cf6b13e)
/include/txp_admin.php: r787 (37ad5c12586d4fd0ab267d2ac8278499)
/include/txp_link.php: r628 (20fda9968512d94d88d729588b99bce4)
/include/txp_diag.php: r852 (09126d2fe483f7ca110fc69bd285614f)
/lib/admin_config.php: r877 (9aea12193cc76eea1964eb0383ec6513)
/lib/txplib_misc.php: r884 (dc3d7fc0464dc34b4b340edcf16510af)
/lib/taglib.php: r628 (493878f922262157601c26a999a1c478)
/lib/txplib_head.php: r856 (8dc52dceb1a44965db75cc1615dfc0a4)
/lib/classTextile.php: r886 (c28c8f662aff56155b6dc2cc51846826)
/lib/txplib_html.php: r763 (54ace98025186be13bdbbfd764a54b4a)
/lib/txplib_db.php: r884 (bcf244957fc34d7741279827f805c8da)
/lib/IXRClass.php: r765 (2efb0fb05b55c634072b0bae9af38bdd)
/lib/txplib_forms.php: r628 (1bce1e4658c002d69990b939d7f76628)
/publish/taghandlers.php: r887 (52d7244ddff488c20caf1a5a669cd61a)
/publish/atom.php: r880 (387edf51b5d7489d0bbd82f6dd53b34d)
/publish/log.php: r864 (c3d16d3dfe375819a19fcd62398e4b86)
/publish/comment.php: r865 (6a125a3b69448fd47c4b4865ddd7e9f1)
/publish/search.php: r884 (80f942f1dc301857c2fa9dcb16aa1246)
/publish/rss.php: r880 (bb1c43e76e4a978186c58fbd21157c77)
/publish.php: r884 (282d209d5d546253a43f0416ea04de33)
/index.php: r888 (1cfaf7e14483e03ce44b44203496c280)
/css.php: r795 (99e8fce7628f8f89ee0c89c88aceaa01)

Detail: low high

Offline

#9 2005-10-23 23:56:28

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Publishing Arabic Text

G,

Any chance you upgraded MySQL after installing Textpattern?

Did you change the dbcharset entry in config.php?


Alex

Offline

#10 2005-10-24 10:54:55

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Publishing Arabic Text

Actually, probably not a database problem at all, since I’m told it affected the comment preview also.

Can you run php -i or phpinfo() and show us the section relating to mbstring please? In particular, the encoding_translation and substitute_character settings.


Alex

Offline

#11 2005-10-24 16:52:00

ghareeb
New Member
Registered: 2005-10-20
Posts: 8

Re: Publishing Arabic Text

Zen Thanks ,
I think you may be on the right track. Here is the results of phpinfo() regards\ing the MBSTRING:

mbstring
Multibyte Support enabled
Multibyte string engine libmbfl
HTTP input encoding translation enabled
Multibyte (japanese) regex support enabled
Multibyte regex (oniguruma) version 3.7.0

mbstring extension makes use of “streamable kanji code filter and converter”, which is distributed under the GNU Lesser General Public License version 2.1.

Directive Local Value Master Value
mbstring.detect_order no value no value
mbstring.encoding_translation On On
mbstring.func_overload 0 0
mbstring.http_input auto auto
mbstring.http_output pass pass
mbstring.internal_encoding ISO-8859-1 no value
mbstring.language Neutral Neutral
mbstring.substitute_character no value no value

=====
I hope you can see where we need to change configuration.

Offline

#12 2005-10-24 18:01:20

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Publishing Arabic Text

Can you switch “mbstring.encoding_translation” to Off, please. You can do this in php.ini (or alternatively per directory in .htaccess or httpd.conf with php_value).

Offline

Board footer

Powered by FluxBB