POSTGRES foreign languages

前端 未结 3 789
广开言路
广开言路 2021-01-27 14:07

I have problem with directly inserting foreign characters like \"ó,č,ĕ,ř\" characters into database. dont working even with my php frontend to be sure there is no transformation

3条回答
  •  梦如初夏
    2021-01-27 14:58

    According to the comments you're using PuTTY, which defaults to latin-1. You need to configure PuTTY to use UTF-8. Just setting the server locale won't do any good unless your PuTTY encoding matches what the environment claims the encoding is.

    Open PuTTy. Under the Window settings heading choose the Translation sub-heading. Set "Remote character set" to "utf-8". In the Fonts sub-tab make sure you are using a font with reasonable Unicode coverage. Then, in the Session menu type a name into the "saved settings" text entry box and type "save" to save your settings as a profile. You can override the "Default Settings" profile by selecting it and setting Save, but this will affect all future connections and new profiles so it may cause confusion if you use other servers that aren't utf-8.

    (These instructions are based on my PuTTY on Fedora 18; there may be some differences in UI details in the recent Windows versions. If in doubt, search for how to set PuTTY to use utf-8.)

提交回复
热议问题