![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi there, My database was created with Unicode encoding, as a fair number of the artists and exhibitions have French names, and thus include accented characters. I thought I'd solved all the various problems this generates, but have just discovered one new one. When I do a dump of the database to back it up (because I'm paranoid and don't want my web host to be my only source of security on this matter), the accented characters don't come through correctly. They all display correctly in phpPgAdmin, and in the PHP pages I've made to search and display the data - it's just in dumps that they're garbled. I presume this means the Unicode encoding is somehow being lost and the data read as standard ASCII. I'm currently using phpPgAdmin to export the data, and it gives me a choice of downloading it as a .sql file or displaying it in the browser window, but either way, the special characters are toasted. Does anyone have any idea how I can do a database dump that keeps the character encoding intact? Thanks, Lynna |
#3
| |||
| |||
|
|
Hi there, My database was created with Unicode encoding, as a fair number of the artists and exhibitions have French names, and thus include accented characters. I thought I'd solved all the various problems this generates, but have just discovered one new one. When I do a dump of the database to back it up (because I'm paranoid and don't want my web host to be my only source of security on this matter), the accented characters don't come through correctly. They all display correctly in phpPgAdmin, and in the PHP pages I've made to search and display the data - it's just in dumps that they're garbled. I presume this means the Unicode encoding is somehow being lost and the data read as standard ASCII. I'm currently using phpPgAdmin to export the data, and it gives me a choice of downloading it as a .sql file or displaying it in the browser window, but either way, the special characters are toasted. Does anyone have any idea how I can do a database dump that keeps the character encoding intact? |
#4
| |||
| |||
|
|
Have you tried restoring your data from the dumps ? |
#5
| |||
| |||
|
|
Major headache, though. I'm hoping as things evolve, Unicode support will be built into more programs including those where it's currently not thought necessary like FTP programs. People need to learn that ASCII is *not* necessarily the correct format for all text files... |
#6
| |||
| |||
|
|
Does anyone have any idea how I can do a database dump that keeps the character encoding intact? |
#7
| |||
| |||
|
|
Does anyone have any idea how I can do a database dump that keeps the character encoding intact? |
#8
| |||
| |||
|
|
Major headache, though. I'm hoping as things evolve, Unicode support will be built into more programs including those where it's currently not thought necessary like FTP programs. People need to learn that ASCII is *not* necessarily the correct format for all text files... The ascii mode in ftp is for files that need to be converted to or from using LF to end lines from or to using CRLF to end lines. Normally you want to do binary transfers. |
![]() |
| Thread Tools | |
| Display Modes | |
| |