logo       

Re: RE: phpSlash translators: msg#00002

Subject: Re: RE: phpSlash translators
Hi Lukasz and all

On Tuesday 20 Apr 2004 12:15 am, Luis M wrote:
[...]

> >I also have some PHP knowledge - this could be usefull whilst
> >solving some problems I've encountered when using ISO 8859-
> >2 (Central Europe) encoding in locale files: some polish
> >diacritic characters were displayed as entities of ISO 8859-1
> >characters having the same numeric code. For example
> >instead of polish "slashed l" character typed in locale file, on
> >website appears character encoded as "³" - superscript
> >3 !
>
> Oh my. I'd say that you don't really need to know php to fix this. It's a
> matter of updating the templates slashHead/Foot files that you use and
> adding your strings to the locale/xx.php locale file (where xx is the ISO
> code for your language).

Some of us are working on a Persian version of Back-End right now, and have 
encountered this problem too (and dealing with bidirectional output!) - so 
some future version of Back-End will be aware of non-ISO 8859-1 character 
sets. 

It's a little more complicated than Luis's answer, I think. There are various 
string cleaning functions scattered around the PSL engine that convert 
characters to htmlentities.htmlspecialchars.

So you might have to go through the code and use the character set extension 
that was added in 4.1
ie htmlentities($foo) becomes htmlentities($foo,ENT_NOQUOTES,'ISO-8859-2');
- particularly in pslGetText().

But as Luis implies, most of the difficulties are avoided by adding 
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
To you slashHead(s). Modern browsers then know better how to deal with input 
and output characters.

Also, make sure that Apache has this setting:
        AddDefaultCharset Off
or
        AddDefaultCharset ISO-8859-2
in the httpd.conf file (not sure if it works for .htaccess)


[..]

HTH

Peter

-- 
The question of whether computers can think is just like the question of
whether submarines can swim.
                -- Edsger W. Dijkstra



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe