x


XMLSerializer Encoding Issue

While trying to load in a xml script, im getting this error in the output_log

ArgumentException: Encoding name 'Windows-1252' not supported

Parameter name: name
at System.Text.Encoding.GetEncoding (System.String name) [0x00000] in <filename unknown>:0 

at System.Xml.XmlInputStream.Initialize (System.IO.Stream stream) [0x00000] in <filename unknown>:0 

at System.Xml.XmlInputStream..ctor (System.IO.Stream stream) [0x00000] in <filename unknown>:0 

at (wrapper remoting-invoke-with-check) System.Xml.XmlInputStream:.ctor (System.IO.Stream)

at System.Xml.XmlStreamReader..ctor (System.IO.Stream input) [0x00000] in <filename unknown>:0 

at (wrapper remoting-invoke-with-check) System.Xml.XmlStreamReader:.ctor (System.IO.Stream)

at System.Xml.XmlTextReader..ctor (System.IO.Stream input) [0x00000] in <filename unknown>:0 

at System.Xml.Serialization.XmlSerializer.Deserialize (System.IO.Stream stream) [0x00000] in <filename unknown>:0 

at ComboManager.GetCombo (System.String _name) [0x0008d] in C:\Users\Admin\Desktop\Battle Brawl\Assets\Battle Assets\Scripts\Managers\ComboManager.cs:25 

at Grenadier.Start () [0x00000] in C:\Users\Admin\Desktop\Battle Brawl\Assets\Battle Assets\Scripts\CharacterArchetypes\Grenadier.cs:7 

(Filename: C Line: 0)

This is only happens when i build my game, and not in the editor.

Anybody know a fix?

more ▼

asked Mar 24 '12 at 10:59 PM

diddykonga gravatar image

diddykonga
159 8 12 14

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

This thread seems to have more information, and a potential workaround.

This next option isn't a sure bet, but you could try it: check your player settings, and if your API compatibility level is ".Net 2.0 subset", try bumping it up to ".Net 2.0". Doing so can increase the size of your built player, and unfortunately won't work on some of the more esoteric platforms, but it could provide a quick resolution.

more ▼

answered Mar 24 '12 at 11:24 PM

rutter gravatar image

rutter
5.2k 2 11

Thanks the answer in the link helped me out.

Just moved "I18N.dll" and "I18N-West.dll" into my managed folder for the build and it all worked fine, thanks :)

Mar 25 '12 at 12:15 AM diddykonga
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5078
x260
x255
x10

asked: Mar 24 '12 at 10:59 PM

Seen: 1157 times

Last Updated: Mar 25 '12 at 12:15 AM