I have this problem that I do not know the encoding of the text I am working with. This makes it difficult to work with mysql as the diffrent encoding can mess up my database.
Whats the best way to do this?
Diffrent Encoding
Moderator: General Moderators
-
onlinedrivingtest
- Forum Newbie
- Posts: 3
- Joined: Wed Nov 16, 2005 10:02 am
- Location: UK
- jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
I may be way off here, but I think that he means the way his text editor encoded PHP files.
I have had this problem before, where if I don't save in ANSI encoding then it just outputs chinese characters when I run the script on my server.
Anyway, if you do mean that, just make sure you Save As everytime you're uncertain and choose ANSI encoding, that's what I do.
If you don't mean anything like the above, don't listen to me
I have had this problem before, where if I don't save in ANSI encoding then it just outputs chinese characters when I run the script on my server.
Anyway, if you do mean that, just make sure you Save As everytime you're uncertain and choose ANSI encoding, that's what I do.
If you don't mean anything like the above, don't listen to me
Weither you are correct or not, this is still an interesting subject. But please do note what editor you are using for future reference. It often a setting in the editor itself tha might cause this. In an win32 enviroment I use UltraEdit. A flick of a checkbox will create the problem you just described, but in a Linux enviroment I never have these issues.jayshields wrote:I may be way off here, but I think that he means the way his text editor encoded PHP files.
I have had this problem before, where if I don't save in ANSI encoding then it just outputs chinese characters when I run the script on my server.
Anyway, if you do mean that, just make sure you Save As everytime you're uncertain and choose ANSI encoding, that's what I do.
If you don't mean anything like the above, don't listen to me
( Please, do not turn this into a thread about what editor is the better.
-
onlinedrivingtest
- Forum Newbie
- Posts: 3
- Joined: Wed Nov 16, 2005 10:02 am
- Location: UK