Beste mensen,
http://www.mylittlehomepage.net/comment_script.html
Ik heb deze simpele "PHP comment-script" volledig in mijn nieuws-systeem geïntegreerd maar het probleem is: de Arabische letters/font wordt niet goed weergegeven. Dit is meestal heel simpel te verhelpen door het volgende code in de <head> van je pagina te zetten: <meta http-equiv="Content-Language" content="ar-sa">
<META content="text/html; charset=windows-1256" http-equiv=Content-Type>
Het wilt maar niet lukken. Ik heb van alles geprobeerd. Ik hoop dat jullie mij met het volgende bron-code kunnen helpen, misschien dat jullie wel zien waar het probleem ligt? Alvast bedankt!
http://www.mylittlehomepage.net/comment_script.html
Ik heb deze simpele "PHP comment-script" volledig in mijn nieuws-systeem geïntegreerd maar het probleem is: de Arabische letters/font wordt niet goed weergegeven. Dit is meestal heel simpel te verhelpen door het volgende code in de <head> van je pagina te zetten: <meta http-equiv="Content-Language" content="ar-sa">
<META content="text/html; charset=windows-1256" http-equiv=Content-Type>
Het wilt maar niet lukken. Ik heb van alles geprobeerd. Ik hoop dat jullie mij met het volgende bron-code kunnen helpen, misschien dat jullie wel zien waar het probleem ligt? Alvast bedankt!
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
| <?php // Settings: // File in which the entries will be saved (requires CHMOD 666): $comment_settings['comment_file'] = "comments.dat"; // Admin E-mail for notifications (optional): $comment_settings['admin_email'] = ""; // Add new comments at the top or at the bottom? $comment_settings['add_comments'] = "bottom"; // How many comments per page? $comment_settings['comments_per_page'] = 10; // Make links clickable: $comment_settings['auto_link'] = true; // Length limitations: $comment_settings['text_maxlength'] = 500; $comment_settings['word_maxlength'] = 50; // If no name is entered: $comment_settings['anonym'] = "Anonym"; // Time format: $comment_settings['time_format'] = "%d.%m.%Y, %H:%M"; // Anker, where the comments are on your pages: $comment_settings['anker'] = "#comments"; // replace wordwrap? (if no "<br />"): $comment_settings['wordwrap'] = " - "; // Language settings: $comment_lang['language'] = "en"; $comment_lang['title'] = "Comments"; $comment_lang['email_title'] = "E-mail to [name]"; $comment_lang['hp_title'] = "Homepage: [homepage]"; $comment_lang['no_comments_yet'] = "No comments yet."; $comment_lang['comments_shown'] = "[comments] of [comments_total] comments (part [part])"; $comment_lang['previous'] = "Previous part"; $comment_lang['next'] = "Next part"; $comment_lang['show_all'] = "Show all comments"; $comment_lang['add_comment'] = "Your comment:"; $comment_lang['name'] = "Name:"; $comment_lang['email_hp'] = "E-mail or homepage:"; $comment_lang['ok'] = "OK"; $comment_lang['no_comments'] = "No comments"; $comment_lang['one_comment'] = "1 comment"; $comment_lang['several_comments'] = "[comments] comments"; $comment_lang['comment_link_title'] = "Read or write comments"; $comment_lang['email_subject'] = " to [comment_to]"; $comment_lang['email_text'] = " [comment_to] [name]:\n\n[comment]\n\n\nLink to the comment:\n[link]"; $comment_lang['error'] = "Error:"; $comment_lang['err_text_too_long'] = " ([characters] characters - maximum is [characters_max] characters)"; $comment_lang['err_word_too_long'] = "the word [word] is too long"; // End of settings |