We're having some issues with characters like apostrophes and dashes either disappearing (Safari) or showing up as garbage characters (Firefox).
I'm using the same version of Postgres and the same codebase. The databases on both systems use the UNICODE encoding. The main thing that's different is the AOLserver version. There isn't anything about charset in either the old or the new config file.
Has anyone done this conversion (in recent memory, that is :) and knows what the problem might be?
thanks,
janine
---
Janine Ohmer (formerly Sisk)
President/CEO of furfly, LLC
503-693-6407
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <list...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
this may not be the answer but it can't do any harm. You should consider adding these to the AOLserver tcl file:
ns_param HackContentType 1
ns_param DefaultCharset utf-8
ns_param HttpOpenCharset utf-8
ns_param OutputCharset utf-8
ns_param URLCharset utf-8
Also, rule out any OS differences by checking your locale, LANG etc. Does Postgres have an equivalent to Oracle's NLS_LANG? Hopefully you won't have to dive into codepages and all that stuff!
best wishes
Brian Fenton
________________________________________
From: AOLserver Discussion [AOLS...@LISTSERV.AOL.COM] On Behalf Of Janine Ohmer [jan...@FURFLY.NET]
Sent: 01 December 2010 05:19
To: AOLS...@LISTSERV.AOL.COM
Subject: [AOLSERVER] Charset differences between 3.3+ad13 and 4.0.10?
The old system isn't accessible anymore (something went very wrong and even though it's RAID and all, fsck ended up removing a bunch of files and making the system unbootable). But from looking at the files in etc from the backups I can deduce that LANG was set to the same thing as it is on the new system, en_US.UTF-8.
I had tried setting these:
ns_param HackContentType 1
ns_param URLCharset "utf-8"
ns_param OutputCharset "utf-8"
ns_param HttpOpenCharset "utf-8"
Which did not work. I will try adding DefaultCharset just in case that is the key, but I'm not holding my breath...
There is an environment variable I can set, PGCLIENTENCODING, which will let me specify what encoding to use for the client, so I can add that to nsd-postgres. But I'm not sure what to set it to - everything's already in UTF8, so there shouldn't *be* any encoding issues (famous last words, I know :).
I can't restart the site during the day (very picky client) so will not be able to try anything until late afternoon.
thanks,
janine
Can you check the byte sequence of the string in the db that's causing a problem.
janine
I don't know whether this is relevant or not, but 0x92 is "�" in the windows-1252 (aka "ISO-8859-1 (Windows)") encoding...
cheers
Russell
hmmm, I'm not sure if that character got eaten at my end or by lserv-m03.elist.aol.com, but what I meant was 0x92 is U+2019 RIGHT SINGLE QUOTATION MARK (aka a typographic quote mark) in windows-1252.
http://networking.itags.org/internet-explorer/28465/
http://php.net/manual/de/function.urlencode.php
it is most probably the easiest approach to fix these in the
database.
With postgres, you could make a dump, change the quotes in
the dump and
reload.
-gustaf neumann
On 02.12.10 08:39, Janine Ohmer wrote:
> Sort of... the column in question is of type text, and the
> only function I can find that will convert from text to
> bytea is decode, not encode. So here's what I did:
>
> select decode(answer_3, 'escape') from public_places where
> public_place_id=1012;
>
> The interesting part of the result is "Park\302\222s",
> which is supposed to be "Park's".
>
>
Brian
________________________________________
From: AOLserver Discussion [AOLS...@LISTSERV.AOL.COM] On Behalf Of Janine Ohmer [jan...@FURFLY.NET]
Sent: 02 December 2010 07:41
To: AOLS...@LISTSERV.AOL.COM
Subject: Re: [AOLSERVER] Charset differences between 3.3+ad13 and 4.0.10?
My name is Maria and I am Tom wife, he need your your help, Can you
help him? call me at 425-241-8218 (cell) or 425-614-3105 (home)
Please call. My email is maria.a...@gmail.com. I need your your
help to updated some website, please call,
thanks
maria