I have a very strange situation. In our application which is built in perl and mysql. we have legacy tables which are of latin1 charset. one of the user has entered arabic data into this table. when I run the query to fetch the details from this table, it appears like this.
أخلاقيات الأعمال الموضوع
In the application we have a page where this is displayed and it is displaying Arabic characters correctly.
أخلاقيات الأعمال الموضوع
We have a ETL (Extract, Transform and Load) process which dumps this data to another DB which is of Star architecture. here this data is saved in tables which are UTF-8 charset.
Now when I query this table, the same field appears like this
أخلاقيات الأعمال الموضوع
In the UI, we have another page which displays the data from the new table. Here the Arabic characters are not appearing correctly. This is how it is displayed in the front end.
أخلاقيات الأعمال الموضوع
The above text is similar or same as to the initial input that I saw in the MYSQL DB latin1 table.
How do I get to display the Arabic characters correctly in the page. Please help.