image not loading after changing the hosting

General support questions
Post Reply
fady sawairas
Posts: 4
Joined: 2021/02/08 22:40:01

image not loading after changing the hosting

Post by fady sawairas » 2021/02/08 22:47:39

i have problem with image
the image with arabic filenames now showing after i move from old server to new server also i have the same with other server after the site move from subdomain to root doamin
i am looking for help to solve this problem

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: image not loading after changing the hosting

Post by pjsr2 » 2021/02/09 08:04:25

Sounds like an inconsistent use of character encoding.

Check the following:
- The character encoding of the file system. When listing files in a directory, do the filenames appear correctly.
- The character encoding used in the web server could be different.
- In case some database is used for the web contents, are there any differences in the character encodings in the database? Is the character encoding for the database configured consistently?

fady sawairas
Posts: 4
Joined: 2021/02/08 22:40:01

Re: image not loading after changing the hosting

Post by fady sawairas » 2021/02/09 11:48:20

- The character encoding of the file system. When listing files in a directory, do the filenames appear correctly.
no the filenames not appear correctly the original name should be : ساحة-العلم-باكو-1.jpg but in file manager like this : #U0623#U0633#U0628#U0627#U0628-#U062a#U062f#U0641#U0639#U0643-#U0625#U0644#U0649-#U0632#U064a#U0627#U0631#U0629-#U062c#U0648#U0631#U062c#U064a#U0627-#U0648#U062a#U0628#U0644#U064a#U0633#U064a-1-100x100.jpg

- The character encoding used in the web server could be different.
how i can check this ?
- In case some database is used for the web contents, are there any differences in the character encodings in the database? Is the character encoding for the database configured consistently?
yes in database the filename of the image appear correct

fady sawairas
Posts: 4
Joined: 2021/02/08 22:40:01

Re: image not loading after changing the hosting

Post by fady sawairas » 2021/02/10 10:53:36

any help guys?

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: image not loading after changing the hosting

Post by pjsr2 » 2021/02/10 11:07:40

#U0623#U0633 and so on looks like UTF-16, which is more common on Windows. Linux uses UTF-8. Is this filesystem mounted from some Windows host?
What is the value of your environment variable $LANG ?

fady sawairas
Posts: 4
Joined: 2021/02/08 22:40:01

Re: image not loading after changing the hosting

Post by fady sawairas » 2021/02/10 11:17:38

no sir the old hosting was also centos 7 with cwp7 pro admin panel
when i compress the site files from old site with file manger and move it to the new site this problem happened .. the original language is arabic lang

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: image not loading after changing the hosting

Post by pjsr2 » 2021/02/10 17:44:53

Please take note of the following: viewtopic.php?f=12&p=278926#p278926

Since I have no clue how CWP is handling Arabic, there is little I can add to help you other than through the attention points I raised.

Post Reply