Opened 13 years ago
Last modified 13 years ago
#1725 new defect
TolExcel no lee el carácter €
| Reported by: | Manuel Locubiche Malaxechevarria | Owned by: | Pedro Gea |
|---|---|---|---|
| Priority: | high | Milestone: | Mantainance |
| Component: | TolPackage | Version: | 3.1 |
| Severity: | critical | Keywords: | |
| Cc: |
Description
TolExcel no lee el carácter "€".
Por ejemplo:
#Require TolExcel; Real id = TolExcel::CppTools::Open("test.xls"); Real TolExcel::CppTools::ActivateNamedWS(id, "Hoja1"); Set ws = TolExcel::CppTools::ReadRange(id, [[1,1]], [[3,3]]); Real TextLength(ws[2][2]); // => 0
Attachments (1)
Change History (9)
by , 13 years ago
comment:1 by , 13 years ago
comment:3 by , 13 years ago
En Windows sigue sin funcionar bien, cuando aparece un caracter especial se interrumpe la cadena.
Por ejemplo, si el contenido de la celda fuese: "42€3 £ zž /ʒ/ sss" obtendríamos "42".
Lo más parecido que he conseguido es: "42¬3 £ z~ /’/ sss" usando:
case BasicExcelCell::WSTRING: { const wchar_t * u_string = cell->GetWString(); std::wstring w3(u_string); std::string s3(w3.begin(), w3.end()); result = new BContensText(s3.c_str()); } break;
comment:4 by , 13 years ago
comment:6 by , 13 years ago
Note:
See TracTickets
for help on using tickets.

(In [5999]) refs #1725, celdas con contenido WSTRING no estaban siendo tratadas, pendiente compilar y probar en windows