![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Hello Nick, Nice to see You. LCMapString is more useful. For convert MB string to WideChar (Unicode) MultiByteToWideChar && WideCharToMultiByte API or StrConv(Str, vbFromUnicode) in VB LCMapString The LCMapString function either maps an input character string to another using a specified transformation or generates a sort key for the input string. int LCMapString( LCID Locale, // locale identifier DWORD dwMapFlags, // mapping transformation type LPCTSTR lpSrcStr, // source string int cchSrc, // number of characters in source string LPTSTR lpDestStr, // destination buffer int cchDest // size of destination buffer ); snip |
#12
| |||
| |||
|
|
I performed an experiment. I created a BASIC subroutine which converts from CP437 to CP1252 and modified attribute 7 of a copied dictionary item (last name attribute) to call this subroutine. |
|
report on the D3 side into a hold file and then copy that report to Windows and view it in a Windows editor, the translation is successful. When I pull the data into Excel using ODBC, the data does not display correctly. I need to find a hex dump program so that I can look at the file byte by byte and see if the data is being mangled by the ODBC server or the data is in tact an Windows is refusing to display it correctly. Also, when I import the D3 report into Excel (fixed field), Excel asks for the 'file origin'. If I use Windows/ANSI (which I assume is CP1252) or CP1252, the report displays correctly in Excel but this again is from a D3 report simply copied. BTW I am using the Wikipedia CP1252 web page as my reference. I'll report back once I examine the files on the byte level Rick |
#13
| |||
| |||
|
|
I believe there may be "issues" with running under VMWare, or any of the other virtualization environments, as part of what your activation code runs off is the NIC, and even a reboot of the VM may cause "havoc" as the software emulation may provide a different/new identifier |
|
You can also get the same sort of problems/issues if you are hooked up to a SAN and go & move things about I believe |
#14
| |||
| |||
|
|
Attr 7 won't ever work as long as it doesn't change any data stored in an item! Try attr 8 instead. |
|
Another idea. Create a "mirror" file for your file in question. Then write a CALLX type trigger, where you implement CONVERSE your chars from 437 to 1252. Then you've done. TOUCH command will make translated file for you for the first time. |
#15
| |||
| |||
|
|
Another idea. Create a "mirror" file for your file in question. Then write a CALLX type trigger, where you implement CONVERSE your chars from 437 to 1252. Then you've done. TOUCH command will make translated file for you for the first time. I kind of bumped into this when I was reading Chapter 7 of the D3 SQL Users Manual where it talks about triggers. |
|
Unfortunately, the files I am using are actually Q-pointers to another account and I found out that there is no file-defining correlative when the file is a Q-pointer (at least that option is not available when I use 'ud' to update the item). |
|
You lost me in your explaination. What is a 'mirror file' and how does it differ to a Q-poiinter? Also what is 'CONVERSE' and 'TOUCH'? |
![]() |
| Thread Tools | |
| Display Modes | |
| |