Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » how to read a dbf
icon4.gif  Re: how to read a dbf [message #9244 is a reply to message #8198] Mon, 23 April 2007 21:15 Go to previous messageGo to previous message
Sbleck is currently offline  Sbleck
Messages: 16
Registered: April 2007
Location: Brazil
Promising Member

Hi,

Quote:


A bug in DbfStream related to encoding - unable to cope with UTF8.

Non-perfect quick fix (line 228):

void DbfStream::SetCharset(byte cs)
{
charset = cs;
byte dest = GetDefaultCharset();
if(dest == CHARSET_UTF8)
dest = CHARSET_WIN1252;
codepage_cv = false;
for(int i = 0; i < 256; i++) {
codepage_uni[i] = ToUnicode(i, charset);
codepage_map[i] = FromUnicode(codepage_uni[i], dest);
codepage_rev[i] = FromUnicode(ToUnicode(i, dest), charset);
if(codepage_map[i] != i)
codepage_cv = true;
}
}

Mirek



How could I use this advice, to check if I'm having the same problem ?

Sven
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon4.gif
Read Message
Previous Topic: Cannot use *.mdb files
Next Topic: small patch for PostgreSQL
Goto Forum:
  


Current Time: Sun Aug 24 16:44:28 CEST 2025

Total time taken to generate the page: 0.04529 seconds