Strange issue ASNI - ASCII

Astinia
Member Posts: 40
Hello everyone.
I have such a problem.
I have file with name 'münd.pdf' and in the NAV 2009 it stores like 'mu¨nd.pdf'.
So, the 'ü' actually replaces with 2 signs 'u¨'. Even if I replace this 2 sings with one 'ü' (252) - the FileSystem returns false on FileExists.
With others files I receive - everything looks fine. I don't know how many files I can have with such encoding.
Any ideas?
I have such a problem.
I have file with name 'münd.pdf' and in the NAV 2009 it stores like 'mu¨nd.pdf'.
So, the 'ü' actually replaces with 2 signs 'u¨'. Even if I replace this 2 sings with one 'ü' (252) - the FileSystem returns false on FileExists.
With others files I receive - everything looks fine. I don't know how many files I can have with such encoding.
Any ideas?
0
Answers
-
In Unicode there are two ways to represent the 'ü' character, precomposed (U+00FC) or composite (base letter 'u' (U+0075) plus combining diaeresis (U+0308)).
If the unicode filename has to be converted into the system's non-unicode codepage, it succeeds for the precomposed character, if that characterset contains the lette 'ü', but fails for the composite one in any case.
I don't quite understand what "in the NAV 2009 it stores like 'mu¨nd.pdf'." is supposed to mean. Looks like the combining diaeresis had been converted to a (non-combining) diaeresis for storage in NAV.
You're probably fine, if you rename your pdf file to use the precompose umlaut, and also use this withing NAV. In Windows, this is the default behaviour of the system. Unfortunately in Mac OS it is not.0 -
Thanks for the fast reply!
So, the only way is to rename file? I can't modify 'nav' name to the correct one? Cause unfortunatile, even if I insert 'ü' in the file name FileSystemObject won't find it.
I tried with NAV virtual table File. It returns me the FileName with 'u¨' - but after I can't do nothing again with it.
The problem is - I get those file-names in the database thru web-add-on. Afterwards I go thru all names and import those in the Attachment table. So, I need to get that file when it is in database but have different name than in the system.
Is that usual to NAV to convert one symbol into two? I have 'hand-made' codeunit to parse ASCII to ANSI. I believed it always one symbol.
Thanks0 -
Unfortunately, with NAV 2009, there is no other option. You'd need a version of NAV that supports Unicode in order to properly store the filename within a NAV Text field.
No ANSI to ASCII conversion will help you to sort this out. You might be able to automatically convert the decomposed umlaut to a precomposed one in NAV, but then you still would need to rename the file to use a precomposed umlaut too, or alternatively "teach" the system to ignore such differences when searching for a file to open by name. A proper Unicode implementation should actually use normalization in such a situation, I suppose.0 -
Thanks a lot.
I decided to rename files when I upload them before the value from variable gets into NAV. So, I just rename it before storing that name in NAV0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions