Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

can't open file

  Date: Jan 09    Category: Unix / Linux / Ubuntu    Views: 399
  

I've saved some image files to my desktop. They're php files. When I
try to open them, I get an error saying "Could not open the file using
the Unicode (UTF-8) character encoding." There's a dropdown menu where
I can change the encoding from automatically detected to Western or
Current Locale. Changing it to either of them doesn't allow me to open
the image.

Any ideas?

Share: 

 

7 Answers Found

 
Answer #1    Answered On: Jan 09    

PHP files are not images, so whatever you saved it was not what you
thought it was !

 
Answer #2    Answered On: Jan 09    

I tried opening it with image viewer and an image appears!

 
Answer #3    Answered On: Jan 09    

Well whatever it is the file extension .php isn't an image so perhaps
it's just been saved with the wrong extension. Should it have been
.png ?

Anyway - if you change the file extension to .png or .jpg and try to
open it you'll see if it can be opened by the default viewers
for image files.

 
Answer #4    Answered On: Jan 09    

Perhaps I've misunderstood, but PHP isn't an image format is it? I know
it as a server-side scripting technology.

What are you trying to open them with?

I'd guess that you've saved a web page containing an image rather than
the image itself. Maybe go back to the original and right-click the
image, then see if there's a Save Image As option.

 
Answer #5    Answered On: Jan 09    

Rename from.php to .jpg and see if that helps.

 
Answer #6    Answered On: Jan 09    

Barry is right, PHP files are not images. You can open them with gedit
and see what we mean.
PHP code is an interpreted code using an interpreter mostly used for
dynamic web pages so what you saved was the code that produces a web
page. It is not likely you will find any pictures or anything that is
useful to you as other pages needed to give a full page are on the
server that you were visiting.

 
Answer #7    Answered On: Jan 09    

They're images saved from a web page. They saved as phps. I was able to open
them when I specified to open with image viewer. I checked the box to always
open them that way, but the system would never remember it and would revert back
to opening it with gedit, and I'd get that error. So I opened up the properties,
renamed them with a .jpg ending, and now they open fine.

 
Didn't find what you were looking for? Find more on can't open file Or get search suggestion and latest updates.




Tagged: