[opencms-dev] Solution for problem with national characters i n properties (eg. navtext)

Vlachogiannis Evangelos evlach at aegean.gr
Sat Feb 28 13:37:02 CET 2004


Hi all,
 
I have actually installed opencms 5.1 in a linux machine with greek encoding
and all opencms properties are working fine without changing any template.
It works either using utf-8 or iso...7
 
-----Original Message-----
From: Szczesniewski, Zbigniew [mailto:Zbigniew.Szczesniewski at datacom.pl] 
Sent: Friday, February 27, 2004 6:53 PM
To: opencms-dev at opencms.org
Subject: [opencms-dev] Solution for problem with national characters in
properties (eg. navtext)
 
Hello,
 
I had big trouble with national characters in navtext (in polish and russian
language). I used UTF-8 default encoding, but nothing helps. 
 
I've found a bug and its solution.
 
Let's see what we have inside of template which is used for edition of
navtext, which is placed in file: /system/workplace/templates/chnav
 
 
<?xml version="1.0" encoding="ISO-8859-1"?>
<WORKPLACE>
<TEMPLATE>
<![CDATA[
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=]]><METHOD
name="getEncoding"/><![CDATA[">
<link rel=stylesheet type="text/css" href="]]><method
name="resourcesUri">format.css</method><![CDATA[">
</head>
<body>
<form name="navigation" >
    <table border=2 cellspacing=0 cellpadding=0 width=430px align=center>
        <tr>
            <td>
 
We have here tag <FORM> without method atribute, what means: send data with
method GET. Web browser urlencodes data from form and if it is in UTF-8,
changes them! Solution is simple. Insert into tag <FORM> attribute
method=post.
 
Corrected tag looks like this:
 
<form name="navigation" method=post>
Now it is enough to correct it in all places where this problem appears and
all troubles dissapear.
 
Greetings  
      Zbigniew Szcześniewski
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040228/0b212433/attachment.htm>


More information about the opencms-dev mailing list