When I'm fetching rows from database, it's showing like below image
Asked
Active
Viewed 675 times
0

Mimouni
- 3,564
- 3
- 28
- 37

Suraj Kumar
- 3
- 4
-
The might some issue with unicode/non-unicode characters. – J Fabian Meier Jun 25 '16 at 10:41
-
@surajkumar, I think that is problem of UTF-8 Charset Please follow http://stackoverflow.com/questions/8156900/codeigniter-and-charsets which describe how to configure utf-8 charset in codeigniter – Haresh Kumar Jun 25 '16 at 10:42
1 Answers
0
You are showing raw, set meta UTF-8 in your webpage for showing it
<head> <meta charset="UTF-8">
@font-face {
font-family: gujarati;
src: url(gujarati_location.woff);
}

Cristo
- 700
- 1
- 8
- 20
-
and checked with this function mb_detect_encoding(str), it's showing UTF-8 – Suraj Kumar Jun 25 '16 at 10:48
-
-
-
I have not only print it, i have to pass this as variable to fetch rows from other table – Suraj Kumar Jun 25 '16 at 11:52
-
Not displaying and passing a variable are to separate things. Try import font from css to display it. Detail what you have to pass as variable. – Cristo Jun 25 '16 at 12:05
-
I have to pass $book variable to fetch rows from database, book variable shown in above picture. when i pass this variable it doesn't match so i can't get the required data. – Suraj Kumar Jun 25 '16 at 12:12
-
That has nothing to do with not being showed if you are storing it correctly – Cristo Jun 25 '16 at 12:16
-
thanks guys..., i got the solution there is nothing big problem actually i was using ucwords() this function converting my string to some garbage values – Suraj Kumar Jun 27 '16 at 07:29