Bug #207
Superfecta Cache & Infobel
| Status: | Closed | Start: | 10/18/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 100% |
|
| Category: | - | |||
| Target version: | Caller ID Superfecta v 2.2.2 Maintenance Release |
Description
Clear the cache, use an international number to lookup (see bug 203 for an example). Debug states it finds the lookup, says cache updated. Request the number again, it still can(t be found in the cache.
History
Updated by tshif 11 months ago
- Status changed from New to Reviewed
- Target version changed from Caller ID Superfecta - Future Versions to Caller ID Superfecta Source Files
Updated by zorka 11 months ago
Little follow up.
Source generated with infobel contains "charset=Windows-1252".
I'm messing around, replacing "$sname = $sname1[0];" in the source with "iconv ( 'Windows-1252' , 'utf-8' , $sname );" without success, but my knowledge of charsets is limited.
Can anyoneelse have a look ?
Updated by zorka 11 months ago
1 iconv ( 'Windows-1252' , 'utf-8' , $sname );"should be
1 $sname = iconv ( 'Windows-1252' , 'utf-8' , $sname );" Updated by zorka 11 months ago
Found the cache problem !
In Infobel the original $thenumber is altered like this :
1 if (strlen($thenumber) > 10)
2 {
3 if (substr($thenumber,0,2) == '33')
4 {
5 $thenumber = '0'.substr($thenumber,2);
6 $Country = 'FR';
7 }
When source-Superfecta_Cache.php is called with "$usage_mode == 'post processing'" $thenumber contains the modified number and not the original, so the wrong number is placed in the cache.
Updated by tshif 11 months ago
- Status changed from Reviewed to Assigned
Patrick - please review when you have time.
Zorka - have you made these changes in svn as of yet?
Updated by zorka 11 months ago
Haven't made the changes yet. Need some reading on how to do it first ;-)
svn is new for me.
Updated by tshif 11 months ago
Im pretty sure we dont have a charsets expert amoung us - certainly not me - but I do think your work with charsets is important.
1 iconv ( 'Windows-1252' , 'utf-8' , $sname );"
should be1 $sname = iconv ( 'Windows-1252' , 'utf-8' , $sname );"
This may be a big part of the problem with special characters that we currently have with this source. Im looking forward to seeing this fix deployed.
Updated by tshif 11 months ago
Zorka - do you plan on deploying $sname = iconv ( 'Windows-1252' , 'utf-8' , $sname );"
?
I am anxious to see if this has an impact on spurious charcters in the CID data.