Question regarding the encoding in planet
Baz
brian.ewins at gmail.com
Thu Apr 6 00:44:50 EST 2006
The answer to that question is in the documentation. From INSTALL:
"Edit the config.ini file in this directory to taste, it's pretty
well documented so you shouldn't have any problems here."
>From examples/basic/config.ini:
# The following provide defaults for each template:
[...]
# encoding: output encoding for the file, Python 2.3+ users can use the
# special "xml" value to output ASCII with XML character references
# locale: locale to use for (e.g.) strings in dates, default is taken from your
# system
...which suggests that
encoding = iso-8859-15
might well work. Although to be honest I still think you'd be better
converting your imported bits into utf-8.
-Baz
On 4/5/06, Shervin Asgari <shervin at linpro.no> wrote:
> Alright I will try to explain in greater detail.
> We fixed the current problem in Apache, and are now able to view the
> planet with norwegian characters. The only difference between ISO_8859-1
> and 15 is the EURO sign :) but yes I mean the 15.
> My question is this, Is there a way to set the charset through a
> configuration setting in planetplanet? Because the problem is that we
> are going to import menus and stuff from other sites which have a
> different charset, and it would be easier for us to convert this to
> ISO_8859-15 through a variable.
>
> Shervin
>
> Baz wrote:
> > (aaagh sent this offlist again)
> >
> > I think you mean ISO-8859-15 these days:
> > http://en.wikipedia.org/wiki/ISO_8859-15
> > ... since otherwise you can't display the Euro symbol.
> >
> > However: what exactly are the problems you're seeing with UTF-8? Are
> > you sure the problem isn't that the pages are encoded in UTF-8, but
> > that the webserver is presenting them as being encoded in some other
> > charset? Take a read of this:
> > http://www.intertwingly.net/blog/2004/09/23/Copy-and-Paste
> >
> > If your planet and its feeds are available in public it would help to
> > post urls so that we can diagnose if your problem lies in the way your
> > planet is served up, planet itself, or is a problem with the feeds.
> >
> > On 4/5/06, Shervin Asgari <shervin at linpro.no> wrote:
> >
> >> Hello. We have now decided to use planet in our blog system, but the
> >> problem is that UTF-8 has problems with the norwegian language. Is there
> >> a way to use ISO-8859-1 instead of UTF-8?
> >> I cannot see a "easy" way of doing this.
> >>
> >> --
> >> Kind Regards
> >>
> >> Shervin Asgari
> >> System Consultant
> >>
> >> Linpro AS
> >> Leading on Linux
> >>
> >>
> >>
> >> --
> >> devel mailing list
> >> devel at lists.planetplanet.org
> >> http://lists.planetplanet.org/mailman/listinfo/devel
> >>
> >>
>
> --
> devel mailing list
> devel at lists.planetplanet.org
> http://lists.planetplanet.org/mailman/listinfo/devel
>
More information about the devel
mailing list