addamroy 36 Posted November 21, 2010 Report Share Posted November 21, 2010 Hey guys. I'm having a problem utilizing the $read file constant. Basically, I want to use it to be able to post an article. So, in the settings area, I can upload a .txt file containing the article body. Now, when I use the $read file command to post the content from the .txt file, it's not recognizing certain charectors or something. Every time an apostrophe is used in the .txt file, it's replaced with a little 'square' image instead of the ' . It also can't seem to recognize 'bullets', or paragraphs well either. I tried using a .doc file instead of .txt but that doesn't work at all. Is there a way to post an article from a file without messing up the article? Quote Link to post Share on other sites
Net66 54 Posted November 21, 2010 Report Share Posted November 21, 2010 Hey guys. I'm having a problem utilizing the $read file constant. Basically, I want to use it to be able to post an article. So, in the settings area, I can upload a .txt file containing the article body. Now, when I use the $read file command to post the content from the .txt file, it's not recognizing certain charectors or something. Every time an apostrophe is used in the .txt file, it's replaced with a little 'square' image instead of the ' . It also can't seem to recognize 'bullets', or paragraphs well either. I tried using a .doc file instead of .txt but that doesn't work at all. Is there a way to post an article from a file without messing up the article? Its because ubot doesn't handle unicode. Load the file in txt editor and save it back out as ANSI and then try. Andy Quote Link to post Share on other sites
addamroy 36 Posted November 21, 2010 Author Report Share Posted November 21, 2010 I just tried that with no luck. I opened the .txt file and 'saved as' a ANSI .txt file. Still doing the same thing. Using NOTEPAD by the way. Should I use notepad c++? Quote Link to post Share on other sites
Praney Behl 314 Posted November 21, 2010 Report Share Posted November 21, 2010 Its because ubot doesn't handle unicode. Load the file in txt editor and save it back out as ANSI and then try. Andy I second that, I was doing the same thing this morning and it wouldn't work but when I changed it then it works just fine Quote Link to post Share on other sites
addamroy 36 Posted November 21, 2010 Author Report Share Posted November 21, 2010 What text editor are you using? It's not working for me for some reason. Quote Link to post Share on other sites
Praney Behl 314 Posted November 21, 2010 Report Share Posted November 21, 2010 Try using the $readfile command instead. Quote Link to post Share on other sites
addamroy 36 Posted November 21, 2010 Author Report Share Posted November 21, 2010 That's the command I'm using. Quote Link to post Share on other sites
addamroy 36 Posted November 21, 2010 Author Report Share Posted November 21, 2010 I think I got it. I used the txt editor to save out as UTF-8 and it worked...weirddddddd Thanks guys. Quote Link to post Share on other sites
Praney Behl 314 Posted November 21, 2010 Report Share Posted November 21, 2010 Hmm learnt something new today Quote Link to post Share on other sites
addamroy 36 Posted November 22, 2010 Author Report Share Posted November 22, 2010 Yup. Killer support, program, and community around here. Quote Link to post Share on other sites
Praney Behl 314 Posted November 22, 2010 Report Share Posted November 22, 2010 Yes I do agree, the community and support is great around here .. I started a thread to thank everyone here for their participation: http://ubotstudio.com/forum/index.php?/topic/4887-expression-of-appreciation-to-this-community/ If you like you can also drop some words to keep the team spirit Praney Quote Link to post Share on other sites
Abs* 12 Posted January 11, 2011 Report Share Posted January 11, 2011 - I have a user from sweeden and they have special charectors such as åäö and ÅÄÖ They are noting the same problem of the software not recognizing the charectors so sending weird ones the current issue is that the area they place the text in is in a UI block text box any solution for this ? I will be updating the bot to load from file - when i do then will they just need to save the text file as ANSI? thanks Quote Link to post Share on other sites
UBotBuddy 331 Posted January 11, 2011 Report Share Posted January 11, 2011 I could be wrong but I do not think UBot support unicode yet. I think there was a thread about it sometime back. You might do a search on it to see. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.