![]() |
| ||
| dot prn encoding problem hey i have this problem giving me a painful headache and sleeplessness ive got these .prn files which should converted into DB and these files contain numbers along with arabic characters the problem is the encoding of these characters is not readable anyone hav an idea how i could convert these files i already have a script which checks for some characters and dumps the rest which was used before in my company but it is a little bit slow and prn files BTW are files generated for some kind of printer or something like this thnx anyway |
| ||
| Re: dot prn encoding problem Quote:
What do you mean by converted to DB? Do you want to save the data in the files into a database field? PHP should be able to read the binary data from the file, and then save it to a binary field in the db without changing any data. If you wanted to display the file contents however with PHP, or have PHP parse the file contents, you'll have to make sure the parsing takes into account the encoding of the file, so that you do not corrupt the file. Having PHP parse the file is not needed however to insert all the file contents into a database field. Are you trying to index the .prn file contents in the db? or just save the file contents into fields? |
| All times are GMT -4. The time now is 10:14 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC