데이터베이스 https://debianusers.or.kr/ en debian10 postgresql csv 파일 import https://debianusers.or.kr/node/346 <span property="schema:name" class="field field--name-title field--type-string field--label-hidden">debian10 postgresql csv 파일 import</span> <div class="field field--name-taxonomy-forums field--type-entity-reference field--label-above"> <div class="field__label">Forums</div> <div class="field__item"><a href="/taxonomy/term/6" hreflang="en">데이터베이스</a></div> </div> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>데비안 10에 postgresql 설치하고 csv 파일을 DB에 넣은 경험 공유.</p> <p>postrgresql 최신 버전은 13인데 apt로 설치하니 11 설치됩니다. 소스 컴파일하기 어려워 보여서 apt 했습니다.</p> <p>\copy 테이블이름 from 'CSV파일이름' delimiter ',' csv header</p> <p>참고: <a href="https://sebuls.blogspot.com/2020/10/import-csv-file-to-postgresql.html">https://sebuls.blogspot.com/2020/10/import-csv-file-to-postgresql.html</a></p> </div> <span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/user/5" typeof="schema:Person" property="schema:name" datatype="">세벌</span></span> <span property="schema:dateCreated" content="2020-10-28T22:28:54+00:00" class="field field--name-created field--type-created field--label-hidden">2020.10.29.(Thu) - 07:28</span> <section class="field field--name-comment-forum field--type-comment field--label-hidden comment-wrapper"> </section> Wed, 28 Oct 2020 22:28:54 +0000 세벌 346 at https://debianusers.or.kr https://debianusers.or.kr/node/346#comments debian 에서 postgresql ? https://debianusers.or.kr/node/227 <span property="schema:name" class="field field--name-title field--type-string field--label-hidden">debian 에서 postgresql ?</span> <div class="field field--name-taxonomy-forums field--type-entity-reference field--label-above"> <div class="field__label">Forums</div> <div class="field__item"><a href="/taxonomy/term/6" hreflang="en">데이터베이스</a></div> </div> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>데비안에서 postgreSQL 쓰려면 어디를 참고해서 하면 좋을까요?</p> </div> <span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/user/5" typeof="schema:Person" property="schema:name" datatype="">세벌</span></span> <span property="schema:dateCreated" content="2018-01-08T01:32:26+00:00" class="field field--name-created field--type-created field--label-hidden">2018.01.08.(Mon) - 10:32</span> <section class="field field--name-comment-forum field--type-comment field--label-hidden comment-wrapper"> <article role="article" data-comment-user-id="5" id="comment-634" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1603608267"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/5" class="profile"> </article> <p class="comment__author"><span lang="" about="/user/5" typeof="schema:Person" property="schema:name" datatype="">세벌</span></p> <p class="comment__time">작성: 2020.10.25.(Sun) - 15:44</p> <p class="comment__time">수정: 2020.10.25.(Sun) - 15:44</p> <p class="comment__permalink"><a href="/comment/634#comment-634" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/comment/634#comment-634" class="permalink" rel="bookmark" hreflang="en">https://wiki.debian.org…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p><a href="https://wiki.debian.org/PostgreSql">https://wiki.debian.org/PostgreSql</a></p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=634&amp;1=default&amp;2=en&amp;3=" token="l5qYlYQYlf2XIV2jyVFxHsbYj7Ijro502XYv9-G-Tpk"></drupal-render-placeholder> </div> </article> </section> Mon, 08 Jan 2018 01:32:26 +0000 세벌 227 at https://debianusers.or.kr https://debianusers.or.kr/node/227#comments [최초보]PHP에서 다중 mySql연결... https://debianusers.or.kr/node/136 <span property="schema:name" class="field field--name-title field--type-string field--label-hidden">[최초보]PHP에서 다중 mySql연결...</span> <div class="field field--name-taxonomy-forums field--type-entity-reference field--label-above"> <div class="field__label">Forums</div> <div class="field__item"><a href="/taxonomy/term/6" hreflang="en">데이터베이스</a></div> </div> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p><span style="color: rgb(34, 34, 34); font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);">안녕하세요? 항상 질문만 드리는 최초보입니다.<br /> 여러 고수님들이 올려주시는 내용들은 무슨 말인지 원... ㅎㅎㅎ 각설하옵고,<br /> 오늘은 다중 db연결에 대하여 여쭤보고자합니다.<br /> <br /> 일반적으로 하나의 db에 여러개의 table을 두고 연결하여 데이터를 입력하는 걸로 알고 있습니다. 그걸 해 보고 싶습니다.<br /> 예를 들어, A라는 db안에 company, pic, diary등등의 테이블을 만들어서<br /> company에는 순수 회사 정보만 입력하고<br /> pic에는 company의 id와 연동하여 담당자만 입력하고<br /> diary에는 company의 id와 pic의 id를 연동하여 면담 내역을 입력하고자 합니다.<br /> <br /> 그러면, db연결도 각각의 테이블로 3번이 되어야만 하는 걸로 생각됩니다.<br /> 연결이 되면 회사이름으로 검색을 하면 회사의 정보와 그 회사 소속의 각 담당자 정보를 각기 다른 테이블에서 불러와 같은 화면에 보여주는 겁니다.<br /> 그리고 담당자 이름을 누르면 새 창으로 그 담당자와 면담일지를 열람/기록/삭제 할 수 있는 그런 기능...<br /> 이게 한 화면에서 가능한지요? - 아직 방법은 모르겠지만 가능하다고 생각합니다.<br /> <br /> 이럴 경우 유의해야할 사항이 있는지 알려 주시면 감사하겠습니다.<br /> 물론, 방법까지 자세히 알려 주시면 더더욱 감사하겠습니다.<br /> 조언을 부탁드립니다.<br /> 감사합니다. 최 초보드림</span></p> </div> <span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/user/15" typeof="schema:Person" property="schema:name" datatype="">dhchoi</span></span> <span property="schema:dateCreated" content="2009-10-17T12:24:00+00:00" class="field field--name-created field--type-created field--label-hidden">2009.10.17.(Sat) - 21:24</span> <section class="field field--name-comment-forum field--type-comment field--label-hidden comment-wrapper"> <article role="article" data-comment-user-id="69" id="comment-330" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1493793672"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/69" class="profile"> </article> <p class="comment__author"><span lang="" about="/user/69" typeof="schema:Person" property="schema:name" datatype="">wildapple</span></p> <p class="comment__time">작성: 2009.10.18.(Sun) - 07:56</p> <p class="comment__time">수정: 2017.05.03.(Wed) - 15:41</p> <p class="comment__permalink"><a href="/comment/330#comment-330" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/comment/330#comment-330" class="permalink" rel="bookmark" hreflang="en">조언드립니다</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><div class="content" style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12px; font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(34, 34, 34); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">대충 재미로 공부해서 그런지 깔끔하게 설명이 안되네요 ^^<br /> 우선 일대다 관계, 다대다 관계, many to many relationship, 외래키, foreign key, innoDB, 조인, join 등 찾아보세요.</div> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=330&amp;1=default&amp;2=en&amp;3=" token="v5uivyL5qDu7g2Sj7rWVK0r-hbFGkq2NNWvLUMnFpeI"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="15" id="comment-331" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1493793761"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/15" class="profile"> </article> <p class="comment__author"><span lang="" about="/user/15" typeof="schema:Person" property="schema:name" datatype="">dhchoi</span></p> <p class="comment__time">작성: 2009.10.18.(Sun) - 10:18</p> <p class="comment__time">수정: 2017.05.03.(Wed) - 15:42</p> <p class="comment__permalink"><a href="/comment/331#comment-331" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/comment/330#comment-330" class="permalink" rel="bookmark" hreflang="en">조언드립니다</a> by <span lang="" about="/user/69" typeof="schema:Person" property="schema:name" datatype="">wildapple</span></p> </footer> <div class="comment__content"> <h3><a href="/comment/331#comment-331" class="permalink" rel="bookmark" hreflang="en">감사합니다.</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><div class="content" style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12px; font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(34, 34, 34); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">꼭! 반드시!! 성공 하고 싶습니다. ㅎㅎㅎ<br /> 잘될지 어떨지 모르지만 중간 중간에 질문도 하고 조언도 받고 싶습니다. 노력하겠습니다.<br /> <br /> 갑자기 날씨가 차가워진 느낌입니다.<br /> 건강 관리 유의하세요.<br /> 좋은 주말 되시기 바랍니다. 최 초보드림</div> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=331&amp;1=default&amp;2=en&amp;3=" token="vN7D27M39OR0k_aHZWi3BCW89PHq0eIe5EyuvXYEGxE"></drupal-render-placeholder> </div> </article> </div> </section> Sat, 17 Oct 2009 12:24:00 +0000 dhchoi 136 at https://debianusers.or.kr https://debianusers.or.kr/node/136#comments [최초보]mysql의 한글 문제 https://debianusers.or.kr/node/129 <span property="schema:name" class="field field--name-title field--type-string field--label-hidden">[최초보]mysql의 한글 문제</span> <div class="field field--name-taxonomy-forums field--type-entity-reference field--label-above"> <div class="field__label">Forums</div> <div class="field__item"><a href="/taxonomy/term/6" hreflang="en">데이터베이스</a></div> </div> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p><span style="color: rgb(34, 34, 34); font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);">여러 고수님들 추석은 잘 쇠셨습니까? 해를 거듭할 수록 명절이 겁이 납니다.... :D<br /> 지난번 여러 분들의 도움으로 무사히 mysql에 입력하는 php code를 작성하였습니다.<br /> 다시 한번 감사드립니다.<br /> <br /> 그런데, 이상하게 mysql에서 조회를 하면 깨져 보입니다.<br /> (그림을 올리려고 했더니 안되는 군요... 방법이 없을까요???)<br /> Debian Etch구요... 처음 mysql에 로그인을 하여 자료를 조회해 보면 한글은 ???? 이렇게 보이구요...<br /> set names utf8;로 하면 phpmyadmin에서 작성한 것만 한글이 정상으로 보이고 나머지,<br /> 리눅스에서 입력을 했던 윈도우에서 입력을 했던, 자료는 깨져 보입니다.(표현을 못하겠습니다)<br /> <br /> 어떤 방법이 있는지 mysql Koea는 물론 구글에서도 조회를 해 보았지만 너무 실력이 없어서 자료를 찾을 수가 없었습니다.<br /> 혹시 어디서 이 문제를 해결 할 수 있는지 길을 알려 주시면 감사하겠습니다.<br /> 다시 한번 도움 부탁드립니다.<br /> 감사합니다.<br /> 최 초보 드림 꾸~~~~~~~~벅!!!!</span></p> </div> <span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/user/15" typeof="schema:Person" property="schema:name" datatype="">dhchoi</span></span> <span property="schema:dateCreated" content="2009-10-05T09:51:00+00:00" class="field field--name-created field--type-created field--label-hidden">2009.10.05.(Mon) - 18:51</span> <section class="field field--name-comment-forum field--type-comment field--label-hidden comment-wrapper"> <article role="article" data-comment-user-id="1" id="comment-293" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1493779624"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/1" class="profile"> </article> <p class="comment__author"><span lang="" about="/user/1" typeof="schema:Person" property="schema:name" datatype="">westporch</span></p> <p class="comment__time">작성: 2009.10.05.(Mon) - 21:09</p> <p class="comment__time">수정: 2017.05.03.(Wed) - 11:47</p> <p class="comment__permalink"><a href="/comment/293#comment-293" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/comment/293#comment-293" class="permalink" rel="bookmark" hreflang="en">쿼리 브라우저</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><div class="content" style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12px; font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(34, 34, 34); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">리눅스에서 APM 소스 컴파일 하기 귀찮을 때 윈도에서 오토셋이란 프로그램으로 APM을 설치하여 mysql을 이용하곤 했어요.<br /> mysql 명령 창에서 한글 값을 입력하고 select 명령을 이용해서 한글로 입력된 자료를 불러오면 깨져서 출력되었는데<br /> '쿼리 브라우저'를 사용하면 한글이 깨지지 않고 제대로 출력할 수 있었어요.<br /> <br /> '쿼리 브라우저'에 대해 검색하시면 답이 나올것 같아요.<br /> 제 답변이 정답이 아니라면 다른 분들이 더 좋은 답변 주실거에요.</div> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=293&amp;1=default&amp;2=en&amp;3=" token="2WR0YGUsK2rKq546puVkN3uZVUF-BfHUfwTi-qSP7dA"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="19" id="comment-294" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1493779772"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/19" class="profile"> </article> <p class="comment__author"><span lang="" about="/user/19" typeof="schema:Person" property="schema:name" datatype="">eunchul</span></p> <p class="comment__time">작성: 2009.10.05.(Mon) - 21:58</p> <p class="comment__time">수정: 2017.05.03.(Wed) - 11:49</p> <p class="comment__permalink"><a href="/comment/294#comment-294" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/comment/294#comment-294" class="permalink" rel="bookmark" hreflang="en">utf8</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><div class="content" style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12px; font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(34, 34, 34); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><a href="http://notes.timeghost.net/2008/10/utf-8-and-mycnf.html">http://notes.timeghost.net/2008/10/utf-8-and-mycnf.html</a><br /> <a href="http://dev.claztec.net/41">http://dev.claztec.net/41</a><br /> 을 참고하시고요.<br /> <br /> google에서 'mysql ut8 my.cnf' 라는 키워드로 검색한 결과입니다.<br /> 한글 블로그는 위의 키워드에 '한글' 을 추가한 결과고요.. :p<br /> <br /> 제 경우는 debian-lenny, mysql-5.0.51에서는 /etc/mysql/my.cnf 파일에서 <pre> <code class="language-markdown">[client] ... default-character-set=utf8 [mysqld] ... default-character-set=utf8</code></pre> 의 설정으로도 한글입출력이 잘 되었습니다.</div> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=294&amp;1=default&amp;2=en&amp;3=" token="5cG35Fz_f55Qu9nWCshOwdLs4WIuySGxPZPgGKOk8a0"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="15" id="comment-295" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1493779925"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/15" class="profile"> </article> <p class="comment__author"><span lang="" about="/user/15" typeof="schema:Person" property="schema:name" datatype="">dhchoi</span></p> <p class="comment__time">작성: 2009.10.05.(Mon) - 23:51</p> <p class="comment__time">수정: 2017.05.03.(Wed) - 11:52</p> <p class="comment__permalink"><a href="/comment/295#comment-295" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/comment/295#comment-295" class="permalink" rel="bookmark" hreflang="en">여전히 같은 문제가 발생합니다</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><div class="content" style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12px; font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(34, 34, 34); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">댓글 주신분들께 진심으로 감사드립니다.<span>&nbsp;</span><br /> <a href="http://notes.timeghost.net/2008/10/utf-8-and-mycnf.html" style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; color: rgb(0, 102, 153); outline: none; text-decoration: none;" title="http://notes.timeghost.net/2008/10/utf-8-and-mycnf.html">http://notes.timeghost.net/2008/10/utf-8-and-mycnf.html</a><span>&nbsp;</span><a href="http://dev.claztec.net/41" style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; color: rgb(0, 102, 153); outline: none; text-decoration: none;" title="http://dev.claztec.net/41">http://dev.claztec.net/41</a><span>&nbsp;</span>을 참고하시고요.<br /> 위의 두 링크를 모두 검색하여 보았습니다만 같은 내용으로 보여 집니다.<br /> <br /> 어떻든 my.cnf를 통채로 복사한 후 mysql을 다시 실행한후 윈도우에서 자료를 다시 입력하여 보았으나 결과는 같습니다.<br /> 서버의 locale도 utf8로 제대로 설정을 하였구요..<br /> <br /> 다시 한번 도움 부탁드립니다.<br /> 감사합니다.<br /> 최초보 드림 꾸~~~~~~벅!!!!</div> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=295&amp;1=default&amp;2=en&amp;3=" token="Nw1OfJ4gRe8E-0kJrYuLpGPCowmqir2fk_YF2xVVFts"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="19" id="comment-296" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1493780208"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/19" class="profile"> </article> <p class="comment__author"><span lang="" about="/user/19" typeof="schema:Person" property="schema:name" datatype="">eunchul</span></p> <p class="comment__time">작성: 2009.10.06.(Tue) - 00:11</p> <p class="comment__time">수정: 2017.05.03.(Wed) - 11:56</p> <p class="comment__permalink"><a href="/comment/296#comment-296" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/comment/295#comment-295" class="permalink" rel="bookmark" hreflang="en">여전히 같은 문제가 발생합니다</a> by <span lang="" about="/user/15" typeof="schema:Person" property="schema:name" datatype="">dhchoi</span></p> </footer> <div class="comment__content"> <h3><a href="/comment/296#comment-296" class="permalink" rel="bookmark" hreflang="en">utf8 설정 확인</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><div class="content" style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12px; font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(34, 34, 34); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">우선 확인해 보실것이 mysql 환경설정입니다. <pre> <code class="language-markdown">mysql -u root mysql</code></pre> <p><br /> mysql 서버에 접속해서</p> <pre> <code class="language-sql">mysql&gt; show variables like '%char%'; +--------------------------+----------------------------+ | Variable_name | Value | +--------------------------+----------------------------+ | character_set_client | utf8 | | character_set_connection | utf8 | | character_set_database | utf8 | | character_set_filesystem | binary | | character_set_results | utf8 | | character_set_server | utf8 | | character_set_system | utf8 | | character_sets_dir | /usr/share/mysql/charsets/ | +--------------------------+----------------------------+ 8 rows in set (0.00 sec)</code></pre> <p>처럼 utf8 설정이 되었는지 확인해 주세요.<br /> <br /> 그리고 해당 database 의 생성된 table 을 확인을 해야 합니다.<br /> 이미 latin1 환경에서 생성된 테이블이라서 입력되는 데이터는 utf8 으로 되어있어도 latin1으로 될것입니다.<br /> 그래서 my.cnf 에서 'SET NAMES utf8' 같이 해주는데 해당 database 에 접속하셔서</p> <pre> <code class="language-sql">mysql&gt; show create table ;</code></pre> <p>으로 질의해보시면 DEFAULT CHARSET의 값을 확인하실 수 있습니다.</p> </div> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=296&amp;1=default&amp;2=en&amp;3=" token="W73VgvbM-SPH9BcoiuDv3h9BdmBhbbCwBxVuAuU7xXc"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="15" id="comment-297" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1493780770"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/15" class="profile"> </article> <p class="comment__author"><span lang="" about="/user/15" typeof="schema:Person" property="schema:name" datatype="">dhchoi</span></p> <p class="comment__time">작성: 2009.10.06.(Tue) - 00:35</p> <p class="comment__time">수정: 2017.05.03.(Wed) - 12:06</p> <p class="comment__permalink"><a href="/comment/297#comment-297" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/comment/296#comment-296" class="permalink" rel="bookmark" hreflang="en">utf8 설정 확인</a> by <span lang="" about="/user/19" typeof="schema:Person" property="schema:name" datatype="">eunchul</span></p> </footer> <div class="comment__content"> <h3><a href="/comment/297#comment-297" class="permalink" rel="bookmark" hreflang="en">결과 내용을 첨부합니다</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><div class="content" style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12px; font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(34, 34, 34); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">우와 빠른 댓글에 진심으로 감사드립니다.</div> <div class="content" style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12px; font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(34, 34, 34); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"> <pre> <code class="language-sql">mysql&gt; show variables like '%char%'; +--------------------------+----------------------------+ | Variable_name | Value | +--------------------------+----------------------------+ | character_set_client | utf8 | | character_set_connection | utf8 | | character_set_database | latin1 | | character_set_filesystem | binary | | character_set_results | utf8 | | character_set_server | utf8 | | character_set_system | utf8 | | character_sets_dir | /usr/share/mysql/charsets/ | +--------------------------+----------------------------+ 8 rows in set (0.01 sec) </code></pre> <pre> <code class="language-markdown">[client] port = 3306 socket = /var/run/mysqld/mysqld.sock default-character-set=utf8 [mysqld] # # * Basic Settings # user = mysql pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr datadir = /var/lib/mysql tmpdir = /tmp language = /usr/share/mysql/korean skip-external-locking default-character-set=utf8 default-collation=utf8_general_ci character-set-server=utf8 collation-server=utf8_general_ci init-connect='SET NAMES utf8' </code></pre> <p>이렇게 되어 있습니다만 역시 결과는</p> <pre> <code class="language-sql">mysql&gt; select * from company; +----+------------------------------------+--------------+-------------+-------------------------------------+------------------------------------+ | id | name | tel | fax | address | remarks | +----+------------------------------------+--------------+-------------+-------------------------------------+------------------------------------+ | 1 | myphpadmin에서입력 | 456-78797 | 87979-76464 | myphpadmin에서입력 | myphpadmin 에서입력 | | 2 | server에서 ìž…ë ¥ | 456-45843464 | 64645-54464 | serever에서 ìž…ë ¥ | server에서 ìž…ë ¥ | | 3 | windowì—ì„œìž…ë ¥ | 3939-303030 | 3333-00999 | windowì—ì„œìž…ë ¥ | windowì—ì„œìž…ë ¥ | +----+------------------------------------+--------------+-------------+-------------------------------------+------------------------------------+ 3 rows in set (0.00 sec) </code></pre> <p>이렇게 나옵니다.<br /> <br /> id 1번은 phpmyadmin을 이용하여 웹에서 입력한 내용이고<br /> 2번은 server에서 브라우저를 이용하여 입력<br /> 3번은 window에서 브라우지를 이용하여 입력한 내용입니다.<br /> <br /> 수고스러우시겠지만 좀 더 도움을 부탁드립니다.<br /> 감사합니다.<br /> 최 초보 드림 꾸~~~~벅!!!</p> </div> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=297&amp;1=default&amp;2=en&amp;3=" token="QpN_oeNHOT-xM2bHEmyJaOmsJWSpnXJN66T3b85niWw"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="19" id="comment-298" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1493780932"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/19" class="profile"> </article> <p class="comment__author"><span lang="" about="/user/19" typeof="schema:Person" property="schema:name" datatype="">eunchul</span></p> <p class="comment__time">작성: 2009.10.06.(Tue) - 10:12</p> <p class="comment__time">수정: 2017.05.03.(Wed) - 12:08</p> <p class="comment__permalink"><a href="/comment/298#comment-298" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/comment/297#comment-297" class="permalink" rel="bookmark" hreflang="en">결과 내용을 첨부합니다</a> by <span lang="" about="/user/15" typeof="schema:Person" property="schema:name" datatype="">dhchoi</span></p> </footer> <div class="comment__content"> <h3><a href="/comment/298#comment-298" class="permalink" rel="bookmark" hreflang="en">mysql 재시작</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><div class="content" style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12px; font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(34, 34, 34); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">/etc/mysql/my.cnf 변경후 mysql 재시작은 하셨나요?<br /> 재시작 하신다음에 company 테이블이 소속되어있는 database에 접속하신후, <pre> <code class="language-sql">mysql&gt; show create table company;</code></pre> 라고 질의를 하시면 company 테이블의 스키마 정보를 보여줍니다.<br /> 맨 끝쪽에 DEFAULT CHARSE 이라는 값이 아마도 latin1 으로 되어있을듯 합니다. <pre> <code class="language-sql">mysql&gt; alter table company CHARACTER SET = utf8;</code></pre> 으로 변경하시거나 아예 company 테이블을 삭제하셨다가 새로 만드시면 해결될듯 합니다.</div> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=298&amp;1=default&amp;2=en&amp;3=" token="jXdjWaPjAXsAxiw5vDALD4_5oFYWYKLeu0ZFunBz5yk"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="15" id="comment-299" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1493781250"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/15" class="profile"> </article> <p class="comment__author"><span lang="" about="/user/15" typeof="schema:Person" property="schema:name" datatype="">dhchoi</span></p> <p class="comment__time">작성: 2017.05.03.(Wed) - 12:12</p> <p class="comment__time">수정: 2017.05.03.(Wed) - 12:14</p> <p class="comment__permalink"><a href="/comment/299#comment-299" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/comment/298#comment-298" class="permalink" rel="bookmark" hreflang="en">mysql 재시작</a> by <span lang="" about="/user/19" typeof="schema:Person" property="schema:name" datatype="">eunchul</span></p> </footer> <div class="comment__content"> <h3><a href="/comment/299#comment-299" class="permalink" rel="bookmark" hreflang="en">mysql을 재시작했습니다</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><div class="content" style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12px; font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(34, 34, 34); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">댓글 감사합니다.<br /> 물론 my.cnf화일 수정후 mysqladmin을 사용하여 mysql을 재시작하였습니다. <pre> <code class="language-sql">mysql&gt; show create table company; +---------+----------------------------------+ | Table | Create Table | +---------+----------------------------------+ | company | CREATE TABLE `company` ( `id` int(6) NOT NULL auto_increment, `name` varchar(30) NOT NULL, `tel` varchar(20) default NULL, `fax` varchar(20) default NULL, `address` varchar(50) default NULL, `remarks` varchar(100) default NULL, KEY `id` (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 | +---------+--------------------------------------------+ 1 row in set (0.00 sec) </code></pre> 이렇게 나옵니다.<br /> 또한, 지우고 새로 만들면서(phpmyadmin에서) collation을 utf8_general_ci로 설정하였는데도 결과가 위와 같습니다.<br /> <br /> 다시 한번 도움 요청드립니다.<br /> 감사합니다.<br /> 최 초보 드림 꾸~~~~~벅!!!</div> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=299&amp;1=default&amp;2=en&amp;3=" token="m878oGnsB57D18-beRrhyfONIMIeBmRrmksjMr7eLxs"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="19" id="comment-300" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1493781387"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/19" class="profile"> </article> <p class="comment__author"><span lang="" about="/user/19" typeof="schema:Person" property="schema:name" datatype="">eunchul</span></p> <p class="comment__time">작성: 2009.10.06.(Tue) - 13:06</p> <p class="comment__time">수정: 2017.05.03.(Wed) - 12:16</p> <p class="comment__permalink"><a href="/comment/300#comment-300" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/comment/299#comment-299" class="permalink" rel="bookmark" hreflang="en">mysql을 재시작했습니다</a> by <span lang="" about="/user/15" typeof="schema:Person" property="schema:name" datatype="">dhchoi</span></p> </footer> <div class="comment__content"> <h3><a href="/comment/300#comment-300" class="permalink" rel="bookmark" hreflang="en">직접 한글 입력</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><div class="content" style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12px; font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(34, 34, 34); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">mysql client 에서 직접 한글을 입력하면 잘 되시나요?<br /> 조건이 mysql 서버가 utf8 환경이고, terminal 도 utf8 인코딩일때 입니다.<br /> terminal 의 인코딩이 euckr 이거나 하면 한글이 깨질것입니다.<br /> <br /> 만약 mysql client 에서 한글 입출력이 잘 된다면, 웹 프로그래밍하실때 인코딩을 체크해보셔야 합니다.<br /> html 태그의 meta 태그에 인코딩 설정이 utf-8 으로 되어있는가..<br /> apache 설정에서 utf8이 기본으로 되어있는가..<br /> 웹 프로그래밍에서 인코딩 처리가 큰 이슈중에 하나인듯 합니다. :)<br /> 물론 영어권 나라들은 그닥 관심이 없는듯 하지만요..</div> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=300&amp;1=default&amp;2=en&amp;3=" token="tUpPQ-F2EiohrnLdtFRXaphDx3pVbKWp0SRZpp1A5To"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="15" id="comment-301" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1493781766"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/15" class="profile"> </article> <p class="comment__author"><span lang="" about="/user/15" typeof="schema:Person" property="schema:name" datatype="">dhchoi</span></p> <p class="comment__time">작성: 2009.10.06.(Tue) - 19:53</p> <p class="comment__time">수정: 2017.05.03.(Wed) - 12:22</p> <p class="comment__permalink"><a href="/comment/301#comment-301" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/comment/300#comment-300" class="permalink" rel="bookmark" hreflang="en">직접 한글 입력</a> by <span lang="" about="/user/19" typeof="schema:Person" property="schema:name" datatype="">eunchul</span></p> </footer> <div class="comment__content"> <h3><a href="/comment/301#comment-301" class="permalink" rel="bookmark" hreflang="en">직접 입력은 잘 됩니다</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><div class="content" style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12px; font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(34, 34, 34); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"> <pre> <code class="language-sql">mysql&gt; select * from company; | id | name | tel | fax | address | remarks | +----+------------------------------------------------+--------------+-------------+---------------- ------------------------------------------------------+--------------------------------------------- --------------------------------------------------------------------+ | 1 | myphpadmin에서입력 | 456-78797 | 87979-76464 | myphpadmin에서입력 | myphpadmin에서입력 | | 2 | server에서 ìž…ë ¥ | 456-45843464 | 64645-54464 | serever에서 ìž…ë ¥ | server에서 ìž…ë ¥ | | 3 | windowì—ì„œìž…ë ¥ | 3939-303030 | 3333-00999 | windowì—ì„œìž…ë ¥ | windowì—ì„œìž…ë ¥ | | 4 | html에서utf8 | 45-45- | 464- | html에서utf8주소 | html에서utf8기타 | | 5 | ê³ ì¹˜ê³ íšŒì‚¬ | 454-47465464 | 646464 | ê³ ì¹˜ê³ ì£¼ì†Œ | ê³ ì¹˜ê³ ê¸°íƒ€ | | 6 | 직접입력 | 111-3333 | 1134-43434 | 직접입력한 주소 | 직접입력한 기타 | | 7 | ë¦¬ëˆ…ìŠ¤ì—ì„œìž…ë ¥ | 455-78941 | 4456546 | 리눅스에서 ìž…ë ¥í•œ 주소 | 리눅스에서 ìž…ë ¥í•œ 기타 기타 타타타타 | +----+------------------------------------------------+--------------+-------------+---------------- ------------------------------------------------------+--------------------------------------------- --------------------------------------------------------------------+ 7 rows in set (0.00 sec) </code></pre> 1) 위에서 보시는 바와 같이 직접입력은 아주 잘 됩니다.<br /> 2) 터미널도 기본로케일 UTF-8을 사용합니다.<br /> 3) html문서도 아래와 같이 되어있습니다. Company Input<br /> 4) apache설정 파일은 아래와 같습니다. <pre> <code class="language-markdown"># # Specify a default charset for all pages sent out. This is # always a good idea and opens the door for future internationalisation # of your web site, should you ever want it. Specifying it as # a default does little harm; as the standard dictates that a page # is in iso-8859-1 (latin1) unless specified otherwise i.e. you # are merely stating the obvious. There are also some security # reasons in browsers, related to javascript and URL parsing # which encourage you to always set a default char set. # #AddDefaultCharset ISO-8859-1 AddDefaultCharset UTF-8 </code></pre> <br /> 뭐가 잘못된 것일까요? 진심으로 도움 부탁드립니다.<br /> 감사합니다.<br /> 최 초보 드림 꾸~~~~~벅!!!!</div> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=301&amp;1=default&amp;2=en&amp;3=" token="YH3T-Qyx6hv0uvkwpxiE2kZ4BXrpEBoJb45pAxlJKDY"></drupal-render-placeholder> </div> </article> </div></div></div></div></div></div><article role="article" data-comment-user-id="69" id="comment-302" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1493782241"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/69" class="profile"> </article> <p class="comment__author"><span lang="" about="/user/69" typeof="schema:Person" property="schema:name" datatype="">wildapple</span></p> <p class="comment__time">작성: 2009.10.07.(Wed) - 13:28</p> <p class="comment__time">수정: 2017.05.03.(Wed) - 12:30</p> <p class="comment__permalink"><a href="/comment/302#comment-302" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/comment/302#comment-302" class="permalink" rel="bookmark" hreflang="en">mysql character 설정 </a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><div class="content" style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12px; font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(34, 34, 34); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">입력 페이지( utf8이 아닐 경우 utf8로 저장되지 않는군요.<br /> gnome-terminal에서 문자 인코딩 설정을 한국어로 바꾸고 select를 하면 utf8로 입력된 글자는 제대로 나오지 않고 euckr로 입력된 글자는 잘 나옵니다.<br /> 혹시 이 경우가 아닐까요?<br /> <br /> * mysql character 설정</div> <div class="content" style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12px; font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(34, 34, 34); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"> <pre> <code class="language-sql">mysql&gt; show variables like '%char%'; +--------------------------+----------------------------+ | Variable_name | Value | +--------------------------+----------------------------+ | character_set_client | latin1 | | character_set_connection | latin1 | | character_set_database | latin1 | | character_set_filesystem | binary | | character_set_results | latin1 | | character_set_server | latin1 | | character_set_system | utf8 | | character_sets_dir | /usr/share/mysql/charsets/ | +--------------------------+----------------------------+ 8 rows in set (0.00 sec) mysql&gt; show create table test; +-------+----------------+ | Table | Create Table | +-------+----------------+ | test | CREATE TABLE `test` ( `id` int(11) NOT NULL AUTO_INCREMENT, `string` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 | +-------+----------------+ 1 row in set (0.00 sec)</code></pre> <p>&nbsp;</p> </div> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=302&amp;1=default&amp;2=en&amp;3=" token="Ao3U7BTC99EQJKOgjzxe8ff_ah1KTspy_gTdTmCns0M"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="15" id="comment-303" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1493782405"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/15" class="profile"> </article> <p class="comment__author"><span lang="" about="/user/15" typeof="schema:Person" property="schema:name" datatype="">dhchoi</span></p> <p class="comment__time">작성: 2009.10.07.(Wed) - 20:44</p> <p class="comment__time">수정: 2017.05.03.(Wed) - 12:33</p> <p class="comment__permalink"><a href="/comment/303#comment-303" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/comment/302#comment-302" class="permalink" rel="bookmark" hreflang="en">mysql character 설정 </a> by <span lang="" about="/user/69" typeof="schema:Person" property="schema:name" datatype="">wildapple</span></p> </footer> <div class="comment__content"> <h3><a href="/comment/303#comment-303" class="permalink" rel="bookmark" hreflang="en">자세히 알려주시면 감사하겠습니다</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><div class="content" style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12px; font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(34, 34, 34); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">댓글 감사합니다. 그런데 어떻게 해보라는 말씀이신지.....<br /> 죄송합니다만 어린 아이 가르치듯이 하나 하나 일러주시면 정말 감사하겠습니다.<br /> 다시 한번 말씀드리면,<br /> <br /> 1) Debian Etch<br /> 2) Default locales = utf8<br /> 3) Terminal = utf8<br /> 4) Mysql charset = utf8<br /> 5) html meta tage = utf8<br /> <br /> ... 여하튼 전부 utf8입니다...<br /> <br /> 감사합니다.<br /> 최 초보드림 꾸~~~~~벅!!!</div> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=303&amp;1=default&amp;2=en&amp;3=" token="XHhKtTwvySrPCvS-z5Oqjbx6cqPGcSk16LG1ilOYQz8"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="69" id="comment-304" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1493782500"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/69" class="profile"> </article> <p class="comment__author"><span lang="" about="/user/69" typeof="schema:Person" property="schema:name" datatype="">wildapple</span></p> <p class="comment__time">작성: 2009.10.07.(Wed) - 23:08</p> <p class="comment__time">수정: 2017.05.03.(Wed) - 12:35</p> <p class="comment__permalink"><a href="/comment/304#comment-304" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/comment/303#comment-303" class="permalink" rel="bookmark" hreflang="en">자세히 알려주시면 감사하겠습니다</a> by <span lang="" about="/user/15" typeof="schema:Person" property="schema:name" datatype="">dhchoi</span></p> </footer> <div class="comment__content"> <h3><a href="/comment/304#comment-304" class="permalink" rel="bookmark" hreflang="en">제 생각은..</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><div class="content" style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12px; font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(34, 34, 34); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">브라우저를 이용해서 입력하는 경우만(?) 문제가 생기니까<br /> 혹시 입력할 때 사용하는 페이지는 앞에 utf8로 설정한 html 문서와는 달리 문자 인코딩이 utf8이 아니지 않을까 하는 ( 설정을 하지 않았을지도 모른다는) 생각이 들어서요.</div> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=304&amp;1=default&amp;2=en&amp;3=" token="2d6B3WuY6c5E1L2Z3MB60uZcBT_TEOKEvTGxfyr7IKQ"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="15" id="comment-305" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1493782634"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/15" class="profile"> </article> <p class="comment__author"><span lang="" about="/user/15" typeof="schema:Person" property="schema:name" datatype="">dhchoi</span></p> <p class="comment__time">작성: 2009.10.08.(Thu) - 09:12</p> <p class="comment__time">수정: 2017.05.03.(Wed) - 12:37</p> <p class="comment__permalink"><a href="/comment/305#comment-305" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/comment/304#comment-304" class="permalink" rel="bookmark" hreflang="en">제 생각은..</a> by <span lang="" about="/user/69" typeof="schema:Person" property="schema:name" datatype="">wildapple</span></p> </footer> <div class="comment__content"> <h3><a href="/comment/305#comment-305" class="permalink" rel="bookmark" hreflang="en">감사합니다</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><div class="content" style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12px; font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(34, 34, 34); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">귀찮으실텐데도 불구하고 답변해 주셔서 감사합니다.<br /> 현재는 입력하는 html파일과 입력해 주는 php파일 두개만 있습니다.<br /> <br /> html파일은 위에서 보시는 바와 같이 meta tag에 분명히 utf-8로 설정되어 있구요<br /> 입력해 주는 php 파일에는 &lt;? php code ~~~~ 입력해라는 sql문.... ?&gt; 달랑 이렇게만 들어 있습니다.<br /> 혹시, sql의 insert문에서도 지정할 수 있는 방법이 있을까요???<br /> <br /> 며칠째 여러분을 괴롭혀 드려서 정말 죄송합니다만<br /> 꼭!!! 도움을 부탁드립니다.<br /> 감사합니다.<br /> 최 초보 드림 꾸~~~~~벅!!!!</div> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=305&amp;1=default&amp;2=en&amp;3=" token="vaOJvO873IMUwf71bTSVRsKmoLBsi5IbtAQ6tcC7MU8"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="19" id="comment-306" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1493782793"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/19" class="profile"> </article> <p class="comment__author"><span lang="" about="/user/19" typeof="schema:Person" property="schema:name" datatype="">eunchul</span></p> <p class="comment__time">작성: 2009.10.08.(Thu) - 10:37</p> <p class="comment__time">수정: 2017.05.03.(Wed) - 12:39</p> <p class="comment__permalink"><a href="/comment/306#comment-306" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/comment/305#comment-305" class="permalink" rel="bookmark" hreflang="en">감사합니다</a> by <span lang="" about="/user/15" typeof="schema:Person" property="schema:name" datatype="">dhchoi</span></p> </footer> <div class="comment__content"> <h3><a href="/comment/306#comment-306" class="permalink" rel="bookmark" hreflang="en">소스코드의 인코딩 문제</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><div class="content" style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12px; font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(34, 34, 34); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">phpMyAdmin 에서는 UTF-8 으로 제대로 전송되는걸 봐서는 소스코드의 인코딩 문제가 맞는것 같습니다.<br /> 그러면 이것을 한번 확인해 주시기 바랍니다.<br /> 지금 company table에 데이터를 입력하는 php code 에서, <a href="http://kr.php.net/manual/en/function.mb-detect-encoding.php">mb_detect_encoding() 함수</a>를 이용해서 해당 변수의 인코딩을 확인해 보세요.<br /> 예를 들면, HTML form 에서 name 이라는 값을 확인하시려면, <pre> <code class="language-php">&lt;?php echo mb_detect_encoding($_REQUEST['name'], "UTF-8, EUC-KR, ASCII"); ?&gt;</code></pre> 로 해보시면 됩니다. 그러면 전송된 데이터(name 변수) 의 인코딩을 알수 있습니다.</div> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=306&amp;1=default&amp;2=en&amp;3=" token="G9UDci3Auoy5llHWJS_ezXjwbVeNx-W_Gneks30GONs"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="15" id="comment-307" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1493782881"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/15" class="profile"> </article> <p class="comment__author"><span lang="" about="/user/15" typeof="schema:Person" property="schema:name" datatype="">dhchoi</span></p> <p class="comment__time">작성: 2009.10.08.(Thu) - 11:49</p> <p class="comment__time">수정: 2017.05.03.(Wed) - 12:41</p> <p class="comment__permalink"><a href="/comment/307#comment-307" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/comment/306#comment-306" class="permalink" rel="bookmark" hreflang="en">소스코드의 인코딩 문제</a> by <span lang="" about="/user/19" typeof="schema:Person" property="schema:name" datatype="">eunchul</span></p> </footer> <div class="comment__content"> <h3><a href="/comment/307#comment-307" class="permalink" rel="bookmark" hreflang="en">감사합니다. </a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><div class="content" style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12px; font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(34, 34, 34); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">일러주신 그대로 php code(check.pho)를 작성하여 파폭과 M$ 익스플로러에서 실행하였더니 UTF-8 얌전하게 위의 메세지만 덜렁 나타납니다.<br /> 도저히 이해가 안됩니다.<br /> <br /> 좀 더 도와 주세요.....<br /> 꼭!!!꼭!!! 부탁드립니다.<br /> 감사합니다.<br /> 최 초보 드림 꾸~~~~~~벅!!!</div> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=307&amp;1=default&amp;2=en&amp;3=" token="OowdwXb832eqwPaorpJxBzuQ4YKZJeFykgnhWEuyFec"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="15" id="comment-308" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1493783021"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/15" class="profile"> </article> <p class="comment__author"><span lang="" about="/user/15" typeof="schema:Person" property="schema:name" datatype="">dhchoi</span></p> <p class="comment__time">작성: 2009.10.08.(Thu) - 13:03</p> <p class="comment__time">수정: 2017.05.03.(Wed) - 12:43</p> <p class="comment__permalink"><a href="/comment/308#comment-308" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/comment/307#comment-307" class="permalink" rel="bookmark" hreflang="en">감사합니다. </a> by <span lang="" about="/user/15" typeof="schema:Person" property="schema:name" datatype="">dhchoi</span></p> </footer> <div class="comment__content"> <h3><a href="/comment/308#comment-308" class="permalink" rel="bookmark" hreflang="en">해결했습니다</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><div class="content" style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 12px; font-family: &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(34, 34, 34); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">그 동안 도와 주신 모든 분들께 진심으로 감사드립니다. 감사의 절 받으세요..... OZL 됐습니다.<br /> 다른건 다 똑 같이 했구요... 다만 입력하는 php code에서 insert문 앞에 <pre> <code class="language-php">mysql_query("set names utf8"); </code></pre> 이 문장을 넣고 실행 하였더니 터미널에서도 제대로 보이고 또 putty를 사용해서도 제대로 보입니다.<br /> <br /> 정말 기쁩니다. 며칠을 고생했는지....<br /> 그 동안 도와 주신 모든 분들께 진심으로 다시 한번 감사드립니다.<br /> 감사합니다.<br /> 최초보 드림 꾸~~~~~~벅!!!!</div> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=308&amp;1=default&amp;2=en&amp;3=" token="eM_Gh5TlBCODOZzNv61_CRcLXofFFLeHO8WhPzH3cJI"></drupal-render-placeholder> </div> </article> </div></div></div></div></div></div> </section> Mon, 05 Oct 2009 09:51:00 +0000 dhchoi 129 at https://debianusers.or.kr https://debianusers.or.kr/node/129#comments