Question: In my localhost (with xammp) CakePHP works fine. After I completed my project and uploaded to my host, it gives me this error: 

```
cakephp: Fatal error: Class 'appModel' not found in .../app/Model/Slider.php

```

Model class was called in AppController and AppModel.php (App::uses('appModel', 'Model')) & all is fine in my localhost!

When I am trying to change php version, it gives me the same error, but in php 5.2 doesn't show anything but error, in php5.3, php5.4 and php5.5 it give me the error in the layout (call menus, footer... etc all but data !!

My CakePHP version 2.5.2
I don't do any change or coding inside AppModel and I think that I don't do any change in lib files or something like that.

what is the problem exactly?

Answer: 
For Python2.7, Use `io.open()` in both locations.

```
import io
import shutil

with io.open('/etc/passwd', encoding='latin-1', errors='ignore') as source:
    with io.open('/tmp/goof', mode='w', encoding='utf-8') as target:
        shutil.copyfileobj(source, target)

```

The above program runs without errors on my PC.
This is how you can convert ansi to utf-8 in Python 2 (you just use normal file objects):

```
with open(file_path_ansi, "r") as source:
    with open(file_path_utf8, "w") as target:
        target.write(source.read().decode("latin1").encode("utf8"))

```