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

Szczesniewski, Zbigniew Zbigniew.Szczesniewski at datacom.pl
Fri Feb 27 17:48:01 CET 2004


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/20040227/4197fcdc/attachment.htm>


More information about the opencms-dev mailing list