hey all
hope u guys can help me out as it is urgent... when trying to open a file on my flash memory this error keeps popping out
gedit has not been able to detect the character encoding.
Please check that you are not trying to open a binary file.
Select a character encoding from the menu and try again.
i am working on ubuntu .... and using NS2, dont know what seems the problem can anyone plz help me
There's really no such thig as a 'plain text file'. Unless your just writing the stings to file yourself and not writing a header first. You see if you are playing by the rules you should write a small header at the start of your text files to tell the program that's reading the 'text' how to interpret the text. If you write a text file and are using Unicode then your header would consist of:
0xff 0xfe
If your are using UTF-8 your header would be:
0xef 0xbb 0xbf
etc, ...
If you are using ASCII then you can leave the header out (as far as I know) and then the encoding used for your text is ASSUMED to be ASCII
@kbw it does open with another application called openoffice.org word processor but not the gedit... the main problem is that I need to perform certain calculations on this file .. if it is experiencing some kind of a file corruption .. this wouldn't give an accurate results..... or is it possible to still use this file .....and if not ..any ideas how can i restore it as this file is my back up file... thanx in advance
@ajh32.. well i am writing strings to the file myself.... but i still don't don't know which encoding character should i use ... thanx in advance
Well how are you writing the file, and what character set are you using? I'm guessing that you're using Unicode. In which case try adding the following to the beginning of your file:
@ajh32 .... This file is automatically created as a result of certain simulation done through a tcl code i have created .... i don't think at this stage i can write anything to the file :( ... is there any other option i can use to restore this file ? would highly appreciate it if u can help ... thanx in advance