Re: text column constraint, newbie question

From: Stephen Cook <sclists(at)gmail(dot)com>
To: Daniel Verite <daniel(at)manitou-mail(dot)org>
Cc: RebeccaJ <rebeccaj(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: text column constraint, newbie question
Date: 2009-03-25 14:37:20
Message-ID: 49CA41A0.3050200@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Daniel Verite wrote:
> Note that htmlentities() expects LATIN1-encoded strings and is thus
> unusable on UTF-8 contents.
> So if you end up talking UTF-8 with the database, you'll probably need
> to use htmlspecialchars() instead, and UTF-8 as your HTML charset.

I believe you are wrong, at least the PHP documentation says otherwise
and it _seems_ to work for me (http://us2.php.net/htmlentities). Maybe
you are thinking about an older version?

Also the iconv() function can help you convert between (some) different
character encodings (http://us2.php.net/htmlentities).

-- Stephen

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Grzegorz Jaśkiewicz 2009-03-25 15:40:51 Re: MAX(ROW(...)) - feature request
Previous Message Adrian Klaver 2009-03-25 13:36:14 Re: Problem with Windows XP Pro SP3 asn PostgreSQL 8.3.5