some encoding validation errors in 2009 sp1

kamranshehzadkamranshehzad Member Posts: 165
it was working fine in 2009 before the upgrade to sp1.
now it throws econding errors..becos of special charactors... like Intel® Core™ while importing the data through xmlport (exposed as code unit)...
<Items><Item><ItemNo>W90VP-UZ023J</ItemNo> <EEStockCode>W90VP-UZ023J</EEStockCode> <Description>W90 - Intel® Core™2 Duo T955</Description> <Description2 /> <BUOM>PCS</BUOM> <InventoryPostingGroup>PRODUCT</InventoryPostingGroup> <UnitPrice>2004.32</UnitPrice> <UnitCost>1844.26</UnitCost> <VendorNo /> <VendorItemNo /> <Blocked>false</Blocked> <GenProdPostingGroup>PRODUCT</GenProdPostingGroup> <TaxGroupCode /> <VATProdPostingGroup>HIGH</VATProdPostingGroup> <SalesUnitofMeasure>PCS</SalesUnitofMeasure> <PurchaseUnitofMeasure>PCS</PurchaseUnitofMeasure> <ManufacturerCode /> <ItemCategoryCode /> <ProductGroupCode /> <ServiceItemGroup /> <Critical>false</Critical> <GlobalDimensionCode1>Laptops</GlobalDimensionCode1> <GlobalDimensionCode2 /> </Item></Items>

Any suggestion..
thanks.
KS

Answers

  • kamranshehzadkamranshehzad Member Posts: 165
    error message is ...

    Microsoft Dynamics NAV Classic
    The XML Parser return the following fatal error:
    Unable to switch the encoding.

    Line Number = 1 Column Number = 40


    OK
    KS
  • freddy.dkfreddy.dk Member, Microsoft Employee Posts: 360
    This is a long shot - but have you tried inserting a XML tag specifying the encoding as the first line in the XML file:

    <?xml version="1.0" encoding="UTF-8"?>
    Freddy Kristiansen
    Group Program Manager, Client
    Microsoft Dynamics NAV
    http://blogs.msdn.com/freddyk

    The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
  • kamranshehzadkamranshehzad Member Posts: 165
    indeed.. its there... but it doesn't accept those special characters...
    It hapened after sp1 .. :( i shouldn't have done it..
    KS
  • krikikriki Member, Moderator Posts: 9,110
    [Topic moved from 'NAV 2009' forum to 'NAV/Navision' forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • kamranshehzadkamranshehzad Member Posts: 165
    this works...
    <?xml version="1.0" encoding="ISO-8859-1" ?>

    regards,
    KS
Sign In or Register to comment.