Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-07-18 22:28:24
- marios
- Archived Plugin Author
- Registered: 2005-03-12
- Posts: 1,253
problems with greek again.
Using a r520 install,set to en_gb in prefs using the same setup as I have mentioned previously ,in article /write,
in the textarea field (article body) txp converts to entities.Same charracters are converted wrong,I’ve allready mentioned these.
The body in admin write textarea field get’s gibberished after saving,so output below:
<code>Για νά δουμε πώς δουλέβει αυτό τό π�?άγμα. Τά κάνει πα�?σινγκ ά�?αυε σωστά. Ή θα έχο�?με π�?οβλήματα. Πέστε μο�? εσείς. Ρόδα.</code>.
I remember having it working correctly with previous revisions,I’ll check later which one that was.
regards, marios
Last edited by marios (2005-07-18 22:35:34)
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
#2 2005-07-19 00:33:07
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re:
I’ve allready mentioned these.
Are you referring to this thread ? We’re still waiting on more information.
The body in admin write textarea field get’s gibberished after saving,so output below:
Για νά δουμε πώς δουλέβει αυτό τό […]
Can you please post the exact steps to reproduce the problem, and a copy of the results you get, and the results you expect. e.g.:
1. Go to article/write
2. Enter “something” in the body
3. Click publish
..etc
I know it’s plainly obvious to you what the problem is, but descriptions like “get’s gibberished” could mean pretty much anything.
Alex
Offline
#3 2005-07-19 10:20:54
- marios
- Archived Plugin Author
- Registered: 2005-03-12
- Posts: 1,253
Re:
Zem , I post a detailed bug info report on the other thread that you mentioned, so we have it in the right place, thanks,
and best regards, marios
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
Re:
I just installed a test of txp and I have 2 problems
1) Although the Greek file is in the right directory there is no option to choose Greek from the language selection
2) When I use Greek I see html entities of Greek characters which also cuts off characters due to the character limit resulting in the rhomboid question mark character.
http://www.translatum.gr/txp/
Then I implemented the changes as seen in http://wiki.agitprop.gr/TextPattern/I18nMods
and I get these errors
Fatal error: Call to undefined function: mb_strtolower() in /home/translat/public_html/txp/textpattern/lib/txplib_head.php on line 26
Fatal error: Call to undefined function: mb_strtolower() in /home/translat/public_html/txp/textpattern/include/txp_article.php on line 397
However, I could not find the string
preg_match_all(“/\s.{1,50}”.preg_quote($q).”.{1,50}\s/i”,$result,$concat);
in taghandlers.php so it was not replaced.
Any working description in order to implement Greek?
Another problem is that the links to About etc do not include the textpattern subdirectory and point to the main site.
DIAGNOSTICS
Textpattern version: 1.0rc3
Document root: /home/translat/public_html
$path_to_site: /home/translat/public_html/txp
Textpattern path: /home/translat/public_html/txp/textpattern
Permanent link mode: messy
Temp folder: /tmp
Site URL: www.translatum.gr/txp
PHP version: 4.3.11
Register globals: 1
Magic quotes: 1/0
Locale: en_GB.UTF-8
Server: Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a
Apache version: Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a
.htaccess file contents:
————————————
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
————————————
Last edited by spiros (2005-07-24 11:21:48)
Offline
#5 2005-07-24 11:36:18
- marios
- Archived Plugin Author
- Registered: 2005-03-12
- Posts: 1,253
Re:
> spiros wrote:
I just installed a test of txp and I have 2 problems
Spiros , thank for stopping by,I was allmost giving up for some input from greek forum members.
Those are not fully functional yet. The lang files for newer rev. are updated through XML-RPC.1) Althoutg the Greek file is in the right directory there is no option to choose Greek from the language selection
How , where , under which Server environment and with which version of TXP ? http://www.translatum.gr/txp/2) When I use Greek I see html entities of Greek characters which also cuts off characters due to the character limit resulting in the rhomboid question mark character.
Then I implemented the changes as seen in http://wiki.agitprop.gr/TextPattern/I18nMods
and I get these errors
<code>Fatal error: Call to undefined function: mb_strtolower() in /home/translat/public_html/txp/textpattern/lib/txplib_head.php on line 26
Fatal error: Call to undefined function: mb_strtolower() in /home/translat/public_html/txp/textpattern/include/txp_article.php on line 397</code>
However, I could not find the string:
<code>preg_match_all(“/\s.{1,50}”.preg_quote($q).”.{1,50}\s/i”,$result,$concat);</code>
in taghandlers.php so it was not replaced.
It has been stated by ZEM that TXP can not rely on this specific function,
Any working description in order to implement Greek?
http://wiki.agitprop.gr/TextPattern/I18nMods
In order to implement Nicos approach above,you should use older versions of TXP.
What would be quite helpfull, for any conclusions,if you could append your diagnostics,sql version. and collation setting used for mySQL,
platform settings,browser encoding ,browser version and language prefs in your browser.And allso the rev nr or version that you use for your
installs
P.S. I have edited your post a little,the rest didn’t show up (I hope you don’t mind), you have to enclose your code samples in code tags in order to have them show up in PunBB.
with best regards, marios
Last edited by marios (2005-07-24 11:53:48)
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
#6 2005-07-24 11:47:38
- marios
- Archived Plugin Author
- Registered: 2005-03-12
- Posts: 1,253
Re:
to compare your results with the other ones use the input strings over at this topic.
Allso , may be let’s just continue on the other mentioned thread. Makes more sense.
What is interesting to observe though on your install is that that textile converts to entity namees and not CDATA (dec.) values, something that I haven’t seen before yet.
I haven’t checked the rep recently ,may be someone allready changed the code, but let’s see what happenes after my next test runs tonight.
The respnse header shows that your Server sends text in UTF-8 , so from that side it’s ok.
regards, marios
Last edited by marios (2005-07-24 12:28:48)
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
Re:
Those are not fully functional yet. The lang files for newer rev. are updated through XML-RPC.1) Althoutg the Greek file is in the right directory there is no option to choose Greek from the language selection
Hmm, I am not sure what this, a remote function or something? How does it work? Do we need remote language files?
How , where , under which Server environment and with which version of TXP ?2) When I use Greek I see html entities of Greek characters which also cuts off characters due to the character limit resulting in the rhomboid question mark character.
TXP rc4 (I ran the update by replacing files)
Mozilla with UTF-8
1.3.33 (Unix)
PHP Version 4.3.11
MySQL Version 4.0.24-standard
cPanel Version 10.2.0-RELEASE
See my php.info for more details http://www.translatum.gr/php.php
It has been stated by ZEM that TXP can not rely on this specific function,
Any working description in order to implement Greek?
http://wiki.agitprop.gr/TextPattern/I18nMods
In order to implement Nicos approach above,you should use older versions of TXP.
What would be quite helpfull, for any conclusions,if you could append your diagnostics,sql version. and collation setting used for mySQL,
platform settings,browser encoding ,browser version and language prefs in your browser.And allso the rev nr or version that you use for your
installs
Well, who wants to downgrade to implement a standard feature like proper UTF support?
I am not sure what collation is or how you get it. I also tested Wordpress as well and it gives me perfect Modern and polytonic Greek in UTF-8 without entities or anything (see it here http://www.translatum.gr/wp)
Here are the diagnostics
Textpattern version: 1.0rc4
last_update: 2005-07-24 17:39:01/2005-07-24 17:38:23
Document root: /home/translat/public_html
$path_to_site: /home/translat/public_html/txp
Textpattern path: /home/translat/public_html/txp/textpattern
Permanent link mode: messy
Temp folder: /tmp
Site URL: www.translatum.gr/txp
PHP version: 4.3.11
Register globals: 1
Magic quotes: 1/0
Locale: el_GR.UTF-8
Server: Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a
Apache version: Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a
.htaccess file contents:
————————————
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
————————————
PHP extensions: xml, tokenizer/0.1, standard/4.3.11, sockets, session, posix, pcre, overload, mysql, mcrypt, gd, ftp, ctype, calendar, bcmath, zlib/1.1, apache
MD5 /include/txp_category.php: 4b4f72a93e36a9e29d93f6b0f291fc33
MD5 /include/txp_plugin.php: 1a874088d08d8f2f84e082c50c893e8c
MD5 /include/txp_auth.php: 3fd54e5590640282424f55518cef9761
MD5 /include/txp_form.php: 05540a6eaa4c868f0f68148e491112d8
MD5 /include/txp_section.php: 5e20935f41841c6b8ab0b2421e36e998
MD5 /include/txp_tag.php: a401087a6a013a165d247281fc87a6b9
MD5 /include/txp_list.php: f407a1a0adff7eda16eea2b147ef3b09
MD5 /include/txp_page.php: 0b2830df5c96a8358929aaadb5a8a036
MD5 /include/txp_discuss.php: f2d851fb38746a31a3eabbfc9af587f9
MD5 /include/txp_prefs.php: 6ab33d2c65359a338aee0eef9eb34aae
MD5 /include/txp_log.php: c1f0750805e658362e4a1a11027c84b2
MD5 /include/txp_preview.php: 5bad58d9871e0e50d0ac4491712543e5
MD5 /include/txp_image.php: 9d41f75782bd3fe1edae1e2a8b3ffd4f
MD5 /include/txp_article.php: 1db929a9185b4b027df997621552ffd8
MD5 /include/txp_css.php: 3fddabd8ec8fc4a1c2dfb27ab3b97f43
MD5 /include/txp_admin.php: 2d3bb3a01aa7817910fe6ecc99c94997
MD5 /include/txp_link.php: 4825aa5203098f6fb2354c6f8de2aa2c
MD5 /include/txp_diag.php: 841146d22f9a8839363e64892eaa1637
MD5 /lib/admin_config.php: 472995882c7a346036ed3f2891103faa
MD5 /lib/txplib_misc.php: 95e33a4217fcaac711a6f3ccd283f353
MD5 /lib/taglib.php: 5e74f28cc9a6e6aa0aa1ffe926c3daab
MD5 /lib/txplib_head.php: 911e50644489e53262f750fe1953bb6a
MD5 /lib/classTextile.php: 97aac42c9d52a0d10c76df3300f4d277
MD5 /lib/txplib_html.php: f3912975926d9743c34f43b2010258c1
MD5 /lib/txplib_db.php: aa09c4f4f21d190972fc3e49544c11d0
MD5 /lib/IXRClass.php: 1e8250e604ce1be76f703a123ef5e782
MD5 /lib/txplib_forms.php: 15ebfea3a6fffa7415062d26681d1239
MD5 /publish/taghandlers.php: baa9814c0e4f46413812dea039dc04c5
MD5 /publish/atom.php: 1c322a2e1f4c6605cc5792d3362353b1
MD5 /publish/log.php: 65531727f4224ec42442c17be73da175
MD5 /publish/comment.php: b98b8720827c9ee4e8b36674502d5840
MD5 /publish/search.php: 786eb0425a1b2b5d6956089131e1ae28
MD5 /publish/rss.php: b0c028a89a8adf3006bc2333a09b177a
MD5 /publish.php: 89b8a2b307cb46c366e6defb68451d94
MD5 /index.php: abedf491ae7701875ba55abbd66843b3
MD5 /css.php: 1eb84831fb0a0416eb545d70c3979d51
Offline
Re:
@marios: spiros is getting named entities instead of numeric entities because mbstring extension is missingin PHP for him.
> Hmm, I am not sure what this, a remote function or something? How does it work? Do we
> need remote language files?
They connect to rpc.textpattern.com. That’s where the translators can now translate their stuff, and it becomes availabel to all users via remote update.
Offline
#9 2005-07-25 16:55:30
- marios
- Archived Plugin Author
- Registered: 2005-03-12
- Posts: 1,253
Re:
Aha , I see, would it be able for you to login into phpmyadmin and check whether your database does a reall utf-8 collation,(allthough now things have changed a little)
Those are not fully functional yet. The lang files for newer rev. are updated through XML-RPC.Hmm, I am not sure what this, a remote function or something? How does it work? Do we need remote language files?
Yes, needed, XML-RPC is an API that can query databases directly and do web services(first introduced by Syndic8.Here it’s needed for TXP I18N Architecture.(It uses http protocol over port 80)
In order to not make this post too long, what do you get when you cut and paste those lang strings that are in the bugreport in the article input field and publish them.
I there any other way ,may be from your hosting provider, to find out what cllation they use , if you don’t have access to them through cpanel(phpmyamin)?
I am not sure what collation is or how you get it. I also tested Wordpress as well and it gives me perfect Modern and polytonic Greek in UTF-8 without entities or anything (see it here http://www.translatum.gr/wp)
So mysql ,can disinguish in which format different strings are encoded it uses collation values at different places (to make it short)
I’d really like to see ,what happens if you publish those strings in your TXP blog.
with best regards, marios
You can find out more about this settings either in the mysql manual or here
The version though that you use(versus mine) is a little different in this regard,because it can not treat multiple charsets at the same time.
Last edited by marios (2005-07-25 17:13:11)
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
#10 2005-07-25 21:18:13
- marios
- Archived Plugin Author
- Registered: 2005-03-12
- Posts: 1,253
Re:
I am not sure what collation is or how you get it. I also tested Wordpress as well and it gives me perfect Modern and polytonic Greek in UTF-8 without entities or anything (see it here http://www.translatum.gr/wp)
Not exactly ,look at your page source, some carracters are converted to entities , so there as a mangle between entities and greek extended range.
Also wordress will get the page title browser headers wrong.
with best regards, marios
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
Re:
About collation:
Yes, I have CP and phpmyadmin, but how exactly do I get to see this? I tried the SHOW CHARACTER SET; but it came with
- - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ‘CHARACTER SET’ at line 1
About Wordpress:
The only character converted to a numeric entity is the apostrophe.
Still, I would say it is much much better than all characters getting converted to entities.
Last edited by spiros (2005-07-25 22:26:09)
Offline
#12 2005-07-25 23:47:49
- marios
- Archived Plugin Author
- Registered: 2005-03-12
- Posts: 1,253
Re:
It might be that you have only very limited options through your hosting company.
Allso mostly in Greece they do not upgrade very often, for instance on my greek hosting account I have the same old mysql version than you have.It was a small company that merged with FORTHNET.
In any case, what I was suggesting, since apparently you are the only one that is presnt here at the moment.
What would happen if you cut and paste the whole greek/coptic charracter range(like the one I mentionened) in your article field and post it to your weblog.
How does this deisplay in your backend after saving (both article and excerpt field) on your backend ?
Does it display the same in the article and excerpt field?
regards, marios
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline