开发者

Oracle -Character Encoding

开发者 https://www.devze.com 2022-12-26 17:55 出处:网络
I am facinga peculiar problem wher开发者_如何学Goe i need to update a particular value in database to say \'Hellò\'. When i runnormal update statement the values are updated fine. But when i put it i

I am facing a peculiar problem wher开发者_如何学Goe i need to update a particular value in database to say 'Hellò'. When i run normal update statement the values are updated fine. But when i put it i a .sql script file and then run the update statement the last character gets replaced by a junk value. Can some one enlighten me on this and how oracle processes script files?


If the update statement works then this isn't an issue with the character encoding in the database so there are two main culprits to look at; your software and your file encoding.

Check that you editor is UTF8 compliant - Notepad for example is not, but Wordpad is, and so are better editors like UltraEdit. You also need to check that the file is saved as UTF8 since this in not always the default and if you edited and saved a file with Notepad, for example, it won't be UTF8 any more.

Once you have a UTF8 file then you must load it into the database via software that supports UTF8, which excludes SQLPlus in Windows 10g. SQL Developer is OK. If you want to use SQLPLus upgrade your client to 11g. You don't say how you are loading it, so check that whatever you are using supported UTF8.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号