PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
This might be a very basic question but as i'm a newbie i dont have any idea how to proceed
I have a requirement where i have to develop a website in japanese langues where students who learn japanese take up exams(fill in the blanks, choose the best answer)
I am ready with all the designs(db, functioanl, technical) but dont know how to proceed with the language part. How to create it in japanese language
this has little to do with php... the php code itself is not in any "language" . php is the language.
the Japanese part will only be in your content itself. and it will not impact your programming.
Yeah, Thats true. I completely agree with that.
What I'm trying to get help of is as, how to store japanese text which is entered, in the database and how to show it in the front end.
Thats a good joke
Could be of great help if anyone could 'genuinely' help me with this problem. I'm not talking about any language in specific.
I want a way out for any foreign language other than english.
I was not joking
For any language, including Klingon, just be consistent with the encoding type you use - that is, use the same in your HTML pages as well as your database, collations, everywhere. And obviously, use an encoding that actually contains characters for the language you want to use. So not blindly use iso8859-1 or latin1 and then try putting Japanese content in there. To keep things simple: if you use UTF-8 at all times you should be safe.
I was not joking
For any language, including Klingon, just be consistent with the encoding type you use - that is, use the same in your HTML pages as well as your database, collations, everywhere. And obviously, use an encoding that actually contains characters for the language you want to use. So not blindly use iso8859-1 or latin1 and then try putting Japanese content in there. To keep things simple: if you use UTF-8 at all times you should be safe.