James
James

Reputation: 43647

Error on file saving

When I create file on Windows hosting, it gets name like джулия.jpg

It has to be a cyrillic name.

fopen() is used for creation.

What can I do with this?

Upvotes: 0

Views: 44

Answers (2)

OIS
OIS

Reputation: 10033

Upvotes: 1

nkr1pt
nkr1pt

Reputation: 4666

It's an encoding issue. Setting PHP to use UTF-8 encoding will probably suffice: http://php.net/manual/en/function.utf8-encode.php

UTF-8 can represent every character in the Unicode character set, plus it has the special property of being backwards-compatible with ASCII.

Upvotes: 2

Related Questions