View Single Post

   
  #3 (permalink)  
Old 04-11-2008, 03:13 AM
Tom Lane
 
Posts: n/a
Default Re: Patch for collation using ICU

Palle Girgensohn <girgen@pingpong.net> writes:
> hmm... I think I might have made a false assumption that
> the locale string would contain the character encoding.


You certainly cannot assume that. Would that it were so easy to find
out the character set for a locale :-(.

There's some code in initdb that you might emulate, though I can't say
that I trust it a whole lot.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Reply With Quote