473,804 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accented chars in several apps

I have a personal database of my books, several of which are French with
accented characters in their titles. However I am getting inconsistent
display of the accent characters depending on the app I am using to
access the DB.

When the accents show up OK in psql and phpPgAdmin,
they look like garbage in pgaccess and pgadmin3.
If I correct them in pgaccess and/or pgadmin3,
they look like garbage in psql and phpPgAdmin.

An example:
pgadmin3 shows
[Paris, Odéon-Théâtre de France, 21 Octobre 1963] ; (suivi de) Pas
Moi : [Paris, Théâtre d'Orsay, 8 Avril 1975]

while phpPgAdmin renders
[Paris, Odéon-Théâtre de France, 21 Octobre 1963] ; (suivi de) Pas Moi :
[Paris, Théâtre d'Orsay, 8 Avril 1975]

-OR- (same database, diff row)
psql (SQL_ASCII enc) has
la dissertation fran?aise aux baccalaur?ats et aux concours

but pgadmin3 sez
la dissertation française aux baccalauréats et aux concours

(dunno how these will travel in email)
The bookcat database is SQL_ASCII. Initdb initted the system (7.4.2
installed by RPM on Fedora Core 1) as en_US.UTF-8.

What should I be checking for in these apps and how can I make them ALL
consistently render the accents correctly?

--
+--------------------------------------------------------------------+
| G. Brannon SMITH, M.S. WWW: http://gbsmith.freeshell.org |
| Computer Science mailto:gbsmithA TfreeshellDOTor g |
| mailto:brannons mithATyahooDOTc om |
+--------------------------------------------------------------------+
| "There is no off position on the genius switch." - David Letterman |
+--------------------------------------------------------------------+
Nov 23 '05 #1
2 1641
Answering my own post. I went ahead and bit the bullent and dumped the
whole thing over to ENCODING = 'UNICODE'. Wasn't nearly as painful as I
thought it would be... although I guess the DB has now effectively
doubled in size.

G. Brannon Smith wrote:
I have a personal database of my books, several of which are French with
accented characters in their titles. However I am getting inconsistent
display of the accent characters depending on the app I am using to
access the DB.

When the accents show up OK in psql and phpPgAdmin,
they look like garbage in pgaccess and pgadmin3.
If I correct them in pgaccess and/or pgadmin3,
they look like garbage in psql and phpPgAdmin.


--
+--------------------------------------------------------------------+
| G. Brannon SMITH, M.S. WWW: http://gbsmith.freeshell.org |
| Computer Science mailto:gbsmithA TfreeshellDOTor g |
| mailto:brannons mithATyahooDOTc om |
+--------------------------------------------------------------------+
| "There is no off position on the genius switch." - David Letterman |
+--------------------------------------------------------------------+
Nov 23 '05 #2
Am Freitag, 9. April 2004 22:32 schrieb G. Brannon Smith:
Answering my own post. I went ahead and bit the bullent and dumped the
whole thing over to ENCODING = 'UNICODE'. Wasn't nearly as painful as I
thought it would be... although I guess the DB has now effectively
doubled in size.


Isn't Unicode mostly the same size in byte as long as most charcters are
ascii? So, are you sure your DB size doubles? in my understanding of unicode,
size should be almost the same in your case.

kind regards,
janning

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postg resql.org

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2454
by: Fuzzyman | last post by:
I've written an anagram finder that produces anagrams from a dictionary of words. The user can load their own dictionary. ( http://www.voidspace.org.uk/atlantibots/nanagram.html ) In order to ensure it is able to find anagrams properly I wanted to strip characters like punctuation etc from words in the dictionary and words the user entered. I test(ed) against the 26 English letters ( string.ascii_lowercase ).
14
16130
by: Nicolas Bouillon | last post by:
Hi I would like to replace accentuel chars (like "é", "è" or "à") with non accetued ones ("é" -> "e", "è" -> "e", "à" -> "a"). I have tried string.replace method, but it seems dislike non ascii chars... Can you help me please ? Thanks.
5
4883
by: Laurent | last post by:
Hello, I'm french and I have a small sorting problem with python (and zope's zcatalog): In a python shell python, try : 'é' > 'z' The answer is true. Then if you try
2
1707
by: nicolas_riesch | last post by:
I try to use python as the language in an asp page with Microsoft IIS 5.0. I have these two files, req_bad.asp and req_ok.asp ---------- req_bad.asp --------- <%@LANGUAGE=Python%> <%
4
2032
by: Satish | last post by:
Hi Gurus, Please help me in this, I have tried all options available to me. (Option 1) I am making a simple request from VB.NET client to WBI generated WSDL and passing request parameters. The response I am expecting should have some accented characters (Customer Name: Lokalcenter Åbygård), but this gets truncated and response is as follows (Customer Name: Lokalcenter bygrd). The WSDL has utf-8 character set defined.
3
3088
by: Jon Weston | last post by:
Hi there. I'm trying to import DOS characters with foreign accents (grave, acute, circumflex, etc) into Text fields in a table in Access97 but Access seems to be converting them along the way. eg. an E with an accent acute somehow gets imported as a comma. How can I get Access to leave the chars alone? Thanks, Jon --
0
3251
by: Mark Drummond | last post by:
I don't do a lot of perl, but what I do usually always involves working with data in LDAP directories. I have a script now that I run every Monday to produce a CSV file containing a dump of some key user data from my directory. I pass that CSV on to some other people and they pull it in to Excel for viewing. We recently started allowing accented characters in the directory and I've noticed that the resulting CSV file ends up with some...
4
2899
by: gsuns82 | last post by:
Hi all, I am facing a strange issue. i.e: I have a jsp page with an input text field where the user can enter searching value even along with Accented Characters.After that i am getting the input value at the controller inorder to compose a query,before that i am replacing Accented Characters with plain text values so that i can append the proper input value in the DBquery. I tried to replace the input string for ...
9
6963
by: Matthew | last post by:
I'm using PHP version 4.4.3. The manual page for PHP's mail() function (URL below) says that for the message (IE. email body) "Each line should be separated with a LF (\n). Lines should not be larger than 70 characters." http://uk2.php.net/manual/en/function.mail.php To see what happened I just sent an email using mail() with one of its lines exactly 100 chars. It was sent perfectly by sendmail as a line of
0
9714
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10600
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10350
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10096
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9174
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7638
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3834
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.