Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-23 19:35:00

saszownik
Member
Registered: 2007-01-23
Posts: 13

adding to cataloges problem

Hi,
I’m new here but I used TXP to some projects and all is fine but I’ve big problem. When I try add my page to any cataloge for example(qlWeb – very popular in my country) I have problem with polish signs.

My test page is : http://www.promocje-bukmacherskie.info

My header in default page looks like this:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“pl” lang=“pl”>
<head> <meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-2” />

<title><txp:page_title />*ąśżź*</title>

For examples catalogue http://katalog.987.pl when I try add to any categories system copy to textfield and textarea keywords, tilte and description (it is cool to fast adding site). Unfortunatelly my sites in TXP I must allways correct words with polish signs :(

In config.php I have charset latin2 not utf8 but I was trying another too. think more people from poland had this problem on startup and throw away TXP because cataloges are very important to promotion site :( Default in my database (nazwa.pl – my hosting) is utf-8

Please any help,

regards,
saszownik

Offline

#2 2007-01-23 19:41:22

saszownik
Member
Registered: 2007-01-23
Posts: 13

Re: adding to cataloges problem

and some diagnostics

Charset (default/config): latin2/latin2
character_set_client: latin2
character_set_connection: latin2
character_set_database: latin2
character_set_results: latin2
character_set_server: latin2
character_set_system: utf8
character_sets_dir: /home/mysql/share/mysql/charsets
17 Tables: textpattern is utf8, txp_category is utf8, txp_css is utf8, txp_discuss is utf8, txp_discuss_ipban is utf8, txp_discuss_nonce is utf8, txp_file is utf8, txp_form is utf8, txp_image is utf8, txp_lang is utf8, txp_link is utf8, txp_log is utf8, txp_plugin is utf8, txp_prefs is utf8, txp_section is utf8, txp_users is utf8

Offline

#3 2007-01-23 21:19:00

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

Re: adding to cataloges problem

Your description of the problem is unclear. Can you provide step-by-step directions for demonstrating the problem please. Also, show us what you’re expecting to see, and what Textpattern actually does.


Alex

Offline

#4 2007-01-23 23:31:11

saszownik
Member
Registered: 2007-01-23
Posts: 13

Re: adding to cataloges problem

I expect iso 8859-2 in my output html. But I think it isn’t iso-8859-2 only still utf-8.
on this pics I draw this element red color-> http://www.promocje-bukmacherskie.info/utf.jpg

maybe problem is here? character_set_system: utf8

In config.php I have $txpcfg[‘dbcharset’] = ‘latin2’;

Offline

#5 2007-01-24 00:09:13

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

Re: adding to cataloges problem

Textpattern uses UTF-8 exclusively. Don’t change the dbcharset setting or the XHTML character set or you’ll create problems. Declare the charset as “utf-8” in your XHTML template, and you’ll be able to use Polish characters anywhere in your content, including category and article titles.

FAQ, FAQ.


Alex

Offline

#6 2007-01-24 08:47:27

saszownik
Member
Registered: 2007-01-23
Posts: 13

Re: adding to cataloges problem

Polish signs in all modern browser show perfectly because it is utf-8, but I needed in html output iso-8859-2 because more catalogues in my country simply not supported utf8. I know it is bug catalogues but I try find good method in textpattern.

Offline

#7 2007-01-24 10:28:08

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

Re: adding to cataloges problem

Ah, I see.

Changing the database character set will almost certainly cause unpredictable and subtle problems. Your best bet is to keep the content stored in UTF-8, and look at ways of converting it to iso-8859-2 when the HTML is sent to the browser. You could try experimenting with the mb_output_handler function.


Alex

Offline

#8 2007-01-24 12:02:33

saszownik
Member
Registered: 2007-01-23
Posts: 13

Re: adding to cataloges problem

thanks for Your try help, but I had some troubles with thiis function.

Method for new site was…
in files publish.php and index.php I change lines from

header(“Content-type: text/html; charset=*UTF-8*”);

on

header(“Content-type: text/html; charset=*iso-8859-2*”);

Now my site is really in 859-2 encoding I think
and then evrything looks great I hope this version TXP will be compatible with plugins etc.

regards,
saszownik

Offline

Board footer

Powered by FluxBB