Page 1 of 1

image not loading after changing the hosting

Posted: 2021/02/08 22:47:39
by fady sawairas
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

Re: image not loading after changing the hosting

Posted: 2021/02/09 08:04:25
by pjsr2
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?

Re: image not loading after changing the hosting

Posted: 2021/02/09 11:48:20
by fady sawairas
- 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

Re: image not loading after changing the hosting

Posted: 2021/02/10 10:53:36
by fady sawairas
any help guys?

Re: image not loading after changing the hosting

Posted: 2021/02/10 11:07:40
by pjsr2
#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 ?

Re: image not loading after changing the hosting

Posted: 2021/02/10 11:17:38
by fady sawairas
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

Re: image not loading after changing the hosting

Posted: 2021/02/10 17:44:53
by pjsr2
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.