Iluvatar+ Posted October 30, 2012 Share Posted October 30, 2012 Geting question marks insead of comma's when i pull chucks of text from my database. Prob a simple way around this but for some reason i cant find anything that can help me so far. Does any one else have a solution for this? Quote Link to comment https://forums.phpfreaks.com/topic/270072-geting-question-marks-insead-of-commas/ Share on other sites More sharing options...
Muddy_Funster Posted October 30, 2012 Share Posted October 30, 2012 That's not something I've heard of before. Could you show us your code? Quote Link to comment https://forums.phpfreaks.com/topic/270072-geting-question-marks-insead-of-commas/#findComment-1388711 Share on other sites More sharing options...
OOP Posted October 30, 2012 Share Posted October 30, 2012 I believe this has something to do with character set used in your database, if I am not mistaken Quote Link to comment https://forums.phpfreaks.com/topic/270072-geting-question-marks-insead-of-commas/#findComment-1388712 Share on other sites More sharing options...
Iluvatar+ Posted October 30, 2012 Author Share Posted October 30, 2012 I thought that but i have pasted in in to notepad before i put it in the d/b but i am still getting. There is nothing odd about my code i have just done a simple foreach loop from a mysql_fetch_array. <?php while($row = mysql_fetch_array($Macros)): ?> <tr> <td width="150px"><?php echo $row['title']; ?></td> <td style="text-align:right;" class="BtnRow ApplyMacro" title="<?php echo addslashes($row['content']); ?>"><a class="Btn">Apply</a></td> </tr> <?php endwhile; ?> Quote Link to comment https://forums.phpfreaks.com/topic/270072-geting-question-marks-insead-of-commas/#findComment-1388718 Share on other sites More sharing options...
Muddy_Funster Posted October 30, 2012 Share Posted October 30, 2012 Have you set the character set for the html code you are building for displaying this on? is it set the same as the character set in the database? Quote Link to comment https://forums.phpfreaks.com/topic/270072-geting-question-marks-insead-of-commas/#findComment-1388720 Share on other sites More sharing options...
OOP Posted October 30, 2012 Share Posted October 30, 2012 lluvatar+ What is your database character set? I am pretty sure it has something to do with that and the encoding you are using when displaying the page. Regards Quote Link to comment https://forums.phpfreaks.com/topic/270072-geting-question-marks-insead-of-commas/#findComment-1388727 Share on other sites More sharing options...
White_Lily Posted October 30, 2012 Share Posted October 30, 2012 Wait, is it those little question markes that are inside block black diamond shapes? Quote Link to comment https://forums.phpfreaks.com/topic/270072-geting-question-marks-insead-of-commas/#findComment-1388779 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.