problem with output of symbols uring PHP & MYsql

Post Reply
User avatar
Rksk
Major
Major
Posts: 730
Joined: Thu Jan 07, 2010 4:19 pm
Location: Rathnapura, Sri Lanka

problem with output of symbols uring PHP & MYsql

Post by Rksk » Thu Oct 13, 2011 10:31 am

I've some data in a mysql table witch contains many symbols (they belongs to a sinhala font). I can see them via phpmyadmin. but when I used them with php, only see boxes.

Please help me to resolve.
Ec post.jpg
Ec post.jpg (29.74 KiB) Viewed 7179 times
[ Post made via Mobile Device ] Image
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: problem with output of symbols uring PHP & MYsql

Post by Neo » Thu Oct 13, 2011 2:05 pm

If you are using a specific font, it needs to be installed on client's end to see. Otherwise you'll get so called boxes like symbols for unknown fonts in your browser. What I can tell you for now is to use a UNICODE font. Or else, you will have to ask your users to download the font to see your contents.
User avatar
Rksk
Major
Major
Posts: 730
Joined: Thu Jan 07, 2010 4:19 pm
Location: Rathnapura, Sri Lanka

Re: problem with output of symbols uring PHP & MYsql

Post by Rksk » Thu Oct 13, 2011 3:29 pm

The font is alredy installed.

my problem is boxes, not symbols.

symbols can see using phpMyAdmin, but can't see from php output.

[ Post made via Mobile Device ] Image
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: problem with output of symbols uring PHP & MYsql

Post by Neo » Thu Oct 13, 2011 8:20 pm

It is surely a font problem. Have you tried seeing the HTML source of the php output?
User avatar
Rksk
Major
Major
Posts: 730
Joined: Thu Jan 07, 2010 4:19 pm
Location: Rathnapura, Sri Lanka

Re: problem with output of symbols uring PHP & MYsql

Post by Rksk » Thu Oct 13, 2011 11:09 pm

No, it isn't a font problem. I tried using html font face tag also. html source too has boxes.

it can be a header problem.

[ Post made via Mobile Device ] Image
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: problem with output of symbols uring PHP & MYsql

Post by Neo » Fri Oct 14, 2011 2:03 am

If you submit the html code, I can have a quick look.

Something out of topic: Until the results are coming, how if you do a good computer diploma such as NIBM diploma. I didn't do that myself but I know few good guys who are doing very well in the industry. That diploma covers almost all theoretical aspects in software engineering. Since you love the field, I'm sure something like that is essential to start your career.
User avatar
Rksk
Major
Major
Posts: 730
Joined: Thu Jan 07, 2010 4:19 pm
Location: Rathnapura, Sri Lanka

Re: problem with output of symbols uring PHP & MYsql

Post by Rksk » Sat Oct 15, 2011 12:21 am

Neo wrote:If you submit the html code, I can have a quick look.

Something out of topic: Until the results are coming, how if you do a good computer diploma such as NIBM diploma. I didn't do that myself but I know few good guys who are doing very well in the industry. That diploma covers almost all theoretical aspects in software engineering. Since you love the field, I'm sure something like that is essential to start your career.
1. At this moment i can't connect from pc, so i'll paste it later. ( ET balance is empty & mobitel has the most bad service in Lanka)

2. there are only 1-2months for exam results & I think i'll have to do exam again because of chema. also I can't pay those cource prices at this time.

thankz.

[ Post made via Mobile Device ] Image
Post Reply

Return to “PHP & MySQL”