MSFN Forum: How to save as unicode? - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to save as unicode? Rate Topic: -----

#1 User is offline   thedogcow 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 19-March 04

Posted 21 March 2004 - 12:45 AM

Just wondering how to save the xml as unicode, as this is the source of my xml not working :)


#2 User is offline   visaversa 

  • Face it...
  • PipPipPip
  • Group: Members
  • Posts: 428
  • Joined: 14-October 03

Posted 21 March 2004 - 01:22 AM

open your xml in notepad or wordpad, save as "unicode" type.
thats it...

Attached File(s)



#3 User is offline   thedogcow 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 19-March 04

Posted 21 March 2004 - 01:23 AM

thanx m8 :)

#4 User is offline   mconger 

  • Group: Members
  • Posts: 4
  • Joined: 19-March 04

Posted 25 March 2004 - 08:31 AM

Wraith: Great work. this little guy is a lifesaver.

I did run into a glitch when I changed over to 1.0.5. I'm running an unattended install (not from CD, won't fit.). I stage everything onto the local laptop from the network, including Xplode and the XML for the platform. It appears something gets lost in using xcopy or copy to stage the xml over to the new platform. The original XML on the network works fine, but any copied XML just gets a complaint of it not being in Unicode format. Does anyone have any idea how to copy a Unicode ASCII file and maintain that encoding? I've tried xcopy and /a and /b switches on copy. No luck.

Thanks!

#5 User is offline   SlimShady 

  • Member
  • PipPip
  • Group: Members
  • Posts: 133
  • Joined: 29-November 03

Posted 25 March 2004 - 09:07 AM

I can't answer your question, sorry.
But I have a workaround:
- Copy the contents of the ASCII XML file
- Create a new textfile
- Paste the content into the file
- And save as Unicode

#6 User is offline   mconger 

  • Group: Members
  • Posts: 4
  • Joined: 19-March 04

Posted 25 March 2004 - 09:11 AM

Slim,

Thanks, but I have a working Unicode file on my server, but when that file is copied to the platform where the unattended is being staged it apparently looses that encoding. Doesn't exactly work for an unattended automated isntall to have to go through and rebuild those xml files by hand on every platform.

#7 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 25 March 2004 - 07:12 PM

when does the file get copied over?

if you're running it at GUIRunOnce and copying over, then starting XPlode, you could just point XPlode to use the XML file directly on the network.

you could try the /G /K /X

one might work, dunno

#8 User is offline   KMan 

  • Newbie
  • Group: Members
  • Posts: 29
  • Joined: 17-March 04

Posted 26 March 2004 - 12:27 AM

Hi!

did you check the file after copying it ?
it would be helpful to know what actually changed.
is it really converted back to ansi, or did it loose its unicode header ?

and this might be a little extraodinary for such a little problem, but you might also consider, instead of copying the file to its new location, create an sfx and let it extract at the proper time to its new location.

This is not elegant, but at least might be a soltion if you need one quickly!

Greetz

KMan

#9 User is offline   mconger 

  • Group: Members
  • Posts: 4
  • Joined: 19-March 04

Posted 26 March 2004 - 11:00 AM

Alanoll,

I prestage pretty much everything locally, so its copied during that phase. I haven't tried those switches I'll take a look.

#10 User is offline   mconger 

  • Group: Members
  • Posts: 4
  • Joined: 19-March 04

Posted 26 March 2004 - 11:03 AM

KMan, on Mar 26 2004, 12:27 AM, said:

Hi!

did you check the file after copying it ?
it would be helpful to know what actually changed.
is it really converted back to ansi, or did it loose its unicode header ?

and this might be a little extraodinary for such a little problem, but you might also consider, instead of copying the file to its new location, create an sfx and let it extract at the proper time to its new location.

This is not elegant, but at least might be a soltion if you need one quickly!

Greetz

KMan

Kman,

The file appears to be intact. I did a diff on the two and came back with no changes. If I open the file that is giving me problems and open save as it defaults to Unicode formating. I'm guessing something of the header didn't quite make it. I may have to resort to some kind of self extractor. That's a good idea that I hadn't considered.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy