Re: Special characters in varchar/text fields
От | Richard Huxton |
---|---|
Тема | Re: Special characters in varchar/text fields |
Дата | |
Msg-id | 200306071315.08216.dev@archonet.com обсуждение исходный текст |
Ответ на | Special characters in varchar/text fields (Lynna Landstreet <lynna@gallery44.org>) |
Список | pgsql-general |
On Friday 06 Jun 2003 9:20 pm, Lynna Landstreet wrote: > The question I tried to post yesterday never made it to the list at all, > but in the spirit of blind optimism I'm trying again with a new one. Well you made it this time. [snip question about handling accents] > Is there any way to either (a) turn special characters into the appropriate > ASCII codes when the form is processed, or (b) enable PostgreSQL to handle > them directly? (b) would probably be the better of the two options, if > possible... OK - PostgreSQL actually has quite good handling for this sort of stuff - the terms you need to search the archives on are "locale" or "localization" (or localisation). There are several aspects to this sort of thing: 1. What characters can I store? 2. How do I sort text? 3. How do I display dates? 4. How do I display currency? etc. There's a whole chapter on this in the manuals (Localization) - read it carefully, especially the bit about setting encodings when creating the database. The two key questions you'll want to ask yourself are 1. What character set do I want (ISO 8859-1/Unicode etc) 2. Do I want to sort by a particular language? Best of luck - this and timezones are a real PITA - not so much PGs fault as the universe's. -- Richard Huxton
В списке pgsql-general по дате отправления: