Skip to content

Commit 8956366

Browse files
author
Alexander Smishlajev
committed
local character set support
1 parent d94189f commit 8956366

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

doc/upgrading.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,37 @@ steps.
1313

1414
.. contents::
1515

16+
Migrating from 0.7.1 to 0.8.0
17+
=============================
18+
19+
0.8.0 8-bit character set support
20+
---------------------------------
21+
22+
Added support for custom encodings in http data.
23+
24+
Inside Roundup, all strings are stored and processed in utf-8.
25+
Unfortunately, some older browsers do not work properly with
26+
utf8-encoded pages (e.g. Netscape Navigator 4 displays wrong
27+
characters in form fields). This version allows to change
28+
the character set for http transfers. To do so, you may add
29+
the following code to your ``page.html`` template::
30+
31+
<div tal:define="uri string:${request/base}${request/env/PATH_INFO}"
32+
tal:omit-tag="python:1"
33+
>
34+
<a tal:attributes="href python:request.indexargs_href(uri,
35+
{'@charset':'utf-8'})">utf-8</a>
36+
<a tal:attributes="href python:request.indexargs_href(uri,
37+
{'@charset':'koi8-r'})">koi8-r</a>
38+
</div>
39+
40+
(substitute ``koi8-r`` with appropriate charset for your language).
41+
Charset preference is kept in the browser cookie ``roundup_charset``.
42+
43+
Lines ``meta http-equiv`` added to the tracker templates in version 0.6.0
44+
are misleading and should be removed. Actual charset is sent in the
45+
true http header.
46+
1647
Migrating from 0.7.0 to 0.7.1
1748
=============================
1849

0 commit comments

Comments
 (0)