in reply to Re: Guess between UTF8 and Latin1/ISO-8859-1
in thread Guess between UTF8 and Latin1/ISO-8859-1

Thanks for your comments. Anyway ...
  1. Sorry. We are not gettting any 2bytes and I don't think we are ever going to.
  2. I dont need to care about those at the moment. All those companies are US based. And I think it's quite likely that if some company uses something else that Latin1 they will know how to specify that in the XML properly. Or that they will use some accentuated characters in the test jobs so we do find out that something is wrong during testing.
  3. The whole point of this is that I do not want to reject stuff I don't have to. The imported stuff will be displayed to the users for review and modification so if we do screw up badly they will notice, but we want to do our best to get the data inside. Of course the scripts will notify me if they have to tweak the XML and I will push the other companies to fix their stuff, but the users should not notice anything if possible.
  4. Again in this case it's safe enough to assume that if the company knows what the heck are entities they will be able to specify the encoding properly.

Jenda
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
   -- Rick Osborne

Edit by castaway: Closed small tag in signature

  • Comment on Re: Re: Guess between UTF8 and Latin1/ISO-8859-1

Replies are listed 'Best First'.
Re: Re: Re: Guess between UTF8 and Latin1/ISO-8859-1
by Joost (Canon) on Jan 21, 2004 at 21:40 UTC

      For some applications your position "I can't have any incorrect data in the system, if it aint 100% sure I'll reject it" is definitely the right one. All I'm trying to say is that for me in this particular case to be safe means to import everything I possibly can even if it means that there might be an incorrect character now and then.

      There is not one correct way to handle errors. The right way depends on the application.

      Jenda
      Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
         -- Rick Osborne

      Edit by castaway: Closed small tag in signature