How to import a list from text file

J1000

  • Posts: 24
I tried importing a list from a text file that looks like this:
empty
empty
empty

But it ends up as this:
ÿþe m p t y

e m p t y

e m p t y

Ryusui

  • Posts: 827
You've saved it in some manner of Unicode format - the first two bytes indicate the encoding scheme.

Save as ASCII and see if that helps. (You can do this in Notepad - the selector will be in the Save/Save As dialog.)
In the event of a firestorm, the salad bar will remain open.

J1000

  • Posts: 24
Thanks it worked! I used ANSI in Notepad (it didn't have an ASCII option)

Ryusui

  • Posts: 827
You're welcome. ;)

On a side note, could you tell me how you imported/embedded data from a text file? It'd be incredibly helpful.
In the event of a firestorm, the salad bar will remain open.

J1000

  • Posts: 24
I used the Import from Text File... button to get the initial values.

Justin

  • *
  • Posts: 4716
You're welcome. ;)

On a side note, could you tell me how you imported/embedded data from a text file? It'd be incredibly helpful.
If you're hoping to actually embed (through AS3) the text file in your code, you can take a look here.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

rbaddorf

  • Posts: 14
I'm running into this same problem importing unusual characters into a List Attribute.
I've tried using the Unicode options, the ACSII and about a dozen other ones. Each option works within my TextEdit program (set to plain text) and other locations (like web browsers) but all of them break once the text is imported into a List Attribute.

Sample: The word amō when imported looks like this: (see attachment)

Anyone know how to fix this? I have hundreds of words to import and fixing them all by hand (copy/paste) is quite time consuming.
Thanks in advance.

sdieters

  • Posts: 2068
it was kinda scary seeing this thread popping up after such a long time while i was reading this yesterday haha.
Anyway rbaddorf, i think the issue lays with the characters itself. im afraid you cant use special characters like the one you have and the one j1000 had.
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

rbaddorf

  • Posts: 14
That may be true, sdieters.
The thing is that I can go into Stencyl and copy/paste the correct letter into the list and it will immediately fix it. No problems. It's just that during the import process the letter get's messed up.