raimis58 Posted January 10, 2010 Report Share Posted January 10, 2010 Sveiki! man te radusies problēma ar garumzīmēm. Garumzīmju vietā rādās tādi kvadrātaini ķeburi. Iekš index.php faila ieliku <meta http-equiv="content-type" content="text/html; charset=utf-8" /> Kas vel varetu būt pa problēmu, ka neiet? Quote Link to comment Share on other sites More sharing options...
mounkuls Posted January 10, 2010 Report Share Posted January 10, 2010 Pašu php failu jāsaglabā UTF-8 bez BOM pirmkārt jau. var padot arī header("Content-type:text/html; charset=utf-8"); vēl papildus. Ja tie nav no datubāzes ņemti teksti, ar to vajadzētu pietikt. Quote Link to comment Share on other sites More sharing options...
raimis58 Posted January 10, 2010 Author Report Share Posted January 10, 2010 Kur man tas ir jāliek? header("Content-type:text/html; charset=utf-8"); Quote Link to comment Share on other sites More sharing options...
mounkuls Posted January 10, 2010 Report Share Posted January 10, 2010 (edited) Kautkur php daļā pirms ir sākta jebkāda satura izvade pārlūkam, vislabāk pirms izdrukā DOCTYPE. Var jau arī sākumā likt kautkur. Tepat šinī forumā ir temats Neliels foruma tēmu apkopojums no arhīva sadaļas. Atrodi teksta kodējumi (encoding, charset) paspaidi tos linkus un palasi tos topikus, tur visu var atrast, izmanto to, savādāk tāda sajūta, ka tas viss velti ir ticis apkopots. P.S. Sāc gan laikam no apakšējā linka, tas tuvāk Tavai problēmai būs. Edited January 10, 2010 by mounkuls Quote Link to comment Share on other sites More sharing options...
raimis58 Posted January 10, 2010 Author Report Share Posted January 10, 2010 arī header("Content-type:text/html; charset=utf-8"); nelīdz :( Quote Link to comment 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.