Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 17 Sep 2012 09:44 PM |
| It's not UTF-8... What is it? |
|
|
| Report Abuse |
|
|
sirsavary
|
  |
| Joined: 27 May 2008 |
| Total Posts: 1222 |
|
|
| 17 Sep 2012 09:46 PM |
| Well it's basically just an XML file, so I'm going to go with whatever XML files are encoded in by default. |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 17 Sep 2012 09:48 PM |
| Thank you for that completely unhelpful post. |
|
|
| Report Abuse |
|
|
sirsavary
|
  |
| Joined: 27 May 2008 |
| Total Posts: 1222 |
|
|
| 17 Sep 2012 09:50 PM |
| Yeah sorry, but hey, it's probably pretty dead on. And do you know for sure that it's not encoded in UTF-8? |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 17 Sep 2012 09:58 PM |
| The closest thing to a default for XML is UTF-8. I don't think that the client interprets XML as UTF-8 encoded because of my Google research. |
|
|
| Report Abuse |
|
|
myrkos
|
  |
| Joined: 06 Sep 2010 |
| Total Posts: 8072 |
|
|
| 17 Sep 2012 10:02 PM |
| I'm pretty sure it is UTF-8. What makes you think it's not? |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 17 Sep 2012 10:12 PM |
[The accented e's in this post have been replaced with normal e's]
I'm having encoding issues.
When I save a StringValue with a Value of "Green Faberge Egg" and open up the file I get this:
Green Faberg[ampersand]#233; Egg
Is the e character being HTML encoded? I don't get it. |
|
|
| Report Abuse |
|
|
sirsavary
|
  |
| Joined: 27 May 2008 |
| Total Posts: 1222 |
|
|
| 17 Sep 2012 10:18 PM |
| It appeats that ampersands are not allowed in an XML file, and that must be a work around. Except for the part where there is no ampersand inside "Green Faberge Egg". Very weird. |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
| |
|
sirsavary
|
  |
| Joined: 27 May 2008 |
| Total Posts: 1222 |
|
|
| 17 Sep 2012 10:20 PM |
| Hey, I haven't worked with XML before. I'm trying to help. Give me some more date to work with and I'll do my best. |
|
|
| Report Abuse |
|
|
myrkos
|
  |
| Joined: 06 Sep 2010 |
| Total Posts: 8072 |
|
|
| 17 Sep 2012 10:21 PM |
| Idk, I can't reproduce your problem. But .rbxl files are definitely UTF-8 (they're even valid plain ASCII), at least for me... |
|
|
| Report Abuse |
|
|
sirsavary
|
  |
| Joined: 27 May 2008 |
| Total Posts: 1222 |
|
|
| 17 Sep 2012 10:23 PM |
| Alright, here's what I found. It appears that is HTML encoded, to avoid things like symbols and accented letters. As to why it's [ampersand]#??? I do not know, but that is what it appears to be. However, I'm sure you already know this, so I'm going to say the most obvious thing here: it's XML encoded. |
|
|
| Report Abuse |
|
|
sirsavary
|
  |
| Joined: 27 May 2008 |
| Total Posts: 1222 |
|
|
| 17 Sep 2012 10:26 PM |
Or maybe it's ANSI encoded... Christ, why do we even care? Are we just curious, or...? |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 17 Sep 2012 10:28 PM |
| I am using an XML serializer. When Studio reads the file it sees the accented e and decides its a few other characters. So it sounds like my serializer isn't properly encoding it as UTF-8?? |
|
|
| Report Abuse |
|
|
sirsavary
|
  |
| Joined: 27 May 2008 |
| Total Posts: 1222 |
|
|
| 17 Sep 2012 10:30 PM |
| That's probably what it is. So in your seralizer you save an accented e and roblox makes it like, aafg, right? |
|
|
| Report Abuse |
|
|
myrkos
|
  |
| Joined: 06 Sep 2010 |
| Total Posts: 8072 |
|
|
| 17 Sep 2012 10:31 PM |
Or, perhaps, Studio is trying to interpret it as ASCII.
Remember, all ASCII is valid UTF-8 but not all UTF-8 is valid ASCII. |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 17 Sep 2012 10:37 PM |
| It sounds more like my parser isn't propertly encoding the XML as UTF-8 even though I told it to. |
|
|
| Report Abuse |
|
|
sirsavary
|
  |
| Joined: 27 May 2008 |
| Total Posts: 1222 |
|
|
| 17 Sep 2012 10:45 PM |
| Have you tried Ctrl-Alt-Delete? |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 17 Sep 2012 11:28 PM |
| According to the Internet the fancy e character is valid UTF-8 as-is. The problem is that the Roblox parser is interpreting it as something else. |
|
|
| Report Abuse |
|
|
myrkos
|
  |
| Joined: 06 Sep 2010 |
| Total Posts: 8072 |
|
|
| 18 Sep 2012 12:08 AM |
| That's because the Roblox parser is interpreting everything as ASCII instead of UTF-8, which means you can't have those fancy characters. |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 18 Sep 2012 12:38 AM |
| It's not that... It was some weird encoding issue. I got it fixed though. |
|
|
| Report Abuse |
|
|
|
| 18 Sep 2012 06:37 AM |
| It's ANSI, according to Notepad++ |
|
|
| Report Abuse |
|
|
sirsavary
|
  |
| Joined: 27 May 2008 |
| Total Posts: 1222 |
|
|
| 18 Sep 2012 07:29 AM |
| No, I believe Notepad++ just saves to ANSI by default. |
|
|
| Report Abuse |
|
|
NVI
|
  |
| Joined: 11 Jan 2009 |
| Total Posts: 4744 |
|
|
| 18 Sep 2012 03:41 PM |
| You guys know what HTML entities are, right? That's where you're getting your ampersand. |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 18 Sep 2012 03:50 PM |
| Yes, that's what confused me was that the character was being encoded as a HTML entity. |
|
|
| Report Abuse |
|
|