{"id":235,"date":"2005-04-20T21:37:48","date_gmt":"2005-04-20T20:37:48","guid":{"rendered":"http:\/\/localhost\/wordpress\/?p=235"},"modified":"2005-04-20T21:37:48","modified_gmt":"2005-04-20T20:37:48","slug":"soap-a-php-2","status":"publish","type":"post","link":"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2","title":{"rendered":"SOAP a PHP (2)"},"content":{"rendered":"<p>Knihovna NuSOAP, o\u00a0kter\u00e9 jsem psal v\u00a0sobotu (viz <a href=\"https:\/\/blog.cernosice.cz\/spot\/2005-04-16-soap-a-php.html\">SOAP a PHP<\/a>) d\u011bl\u00e1 super v\u011bc\u00a0\u2013 n\u011bkde uvnit\u0159 v\u0161echno co je UTF-8\u00a0p\u0159evede nejd\u0159\u00edve na ISO-8859\u20131 a pak zase zp\u00e1tky na UTF-8.\u00a0Opravdu nev\u00edm pro\u010d to d\u011bl\u00e1, ale pou\u017e\u00edv\u00e1 na to funkci <strong>utf8\u00a0encode()<\/strong> a <strong>utf8\u00a0encode()<\/strong>.<\/p>\n<p>Kontroln\u00ed ot\u00e1zka\u00a0\u2013 co se asi stane s\u00a0\u010desk\u00fdm textem v\u00a0UTF-8\u00a0p\u0159eveden\u00fdm do ISO-8859\u20131 a zp\u011bt do\u00a0UTF-8?<\/p>\n<div class=\"code\"><strong>P\u0159ed:<\/strong><br \/>\n\u011b\u0161\u010d\u0159\u017e\u00fd\u00e1\u00ed\u00e9<\/p>\n<p><strong>Po:<\/strong><br \/>\n?????\u00fd\u00e1\u00ed\u00e9<\/div>\n<h3>Dopln\u011bno ve 22.00<\/h3>\n<p>Na\u0161t\u011bst\u00ed jsem v\u00a0koment\u00e1\u0159\u00edch na\u0161el pozn\u00e1mku:<\/p>\n<div class=\"code\">\/\/ TODO: add an option to disable this for folks who want<br \/>\n\/\/ raw UTF-8\u00a0that, e.g., might not map to iso-8859\u20131<\/div>\n<p>Na <strong>Sourceforge<\/strong> jsem si z\u00a0CVS repository st\u00e1hnul o\u00a0setinku nov\u011bj\u0161\u00ed verzi, ve kter\u00e9 byla mo\u017enost vypnout tu v\u00fd\u0161e uvedenou hloupost. Ufff. \u010casov\u00e1 ztr\u00e1ta asi 4\u00a0hodiny.<\/p>\n<h3>Dopl\u011bno ve 23.15<\/h3>\n<p>\u010cty\u0159i hodiny jsou mo\u017en\u00e1 tro\u0161ku moc, tak\u017ee n\u00e1sleduje vysv\u011btlen\u00ed \u2192 Pokud byly v\u00a0textu pou\u017eity \u010desk\u00e9 znaky s\u00a0\u010d\u00e1rkou, tak se v\u0161e zd\u00e1lo v\u00a0po\u0159\u00e1dku, pak jsem si ale v\u0161iml, \u017ee m\u00edsto znak\u016f s\u00a0h\u00e1\u010dkama se zobrazuj\u00ed otazn\u00edky. M\u011bl jsem podez\u0159en\u00ed na nastaven\u00ed komunikace s\u00a0MySQL, p\u0159\u00edpad\u011b na nastaven\u00ed MySQL samotn\u00e9, dokonce jsem provedl downgrade z\u00a04.1\u00a0na 4.0 (proto\u017ee verze 4.1\u00a0pou\u017e\u00edv\u00e1 nativn\u011b UTF-8\u00a0a spr\u00e1vn\u00e9 nastaven\u00ed k\u00f3dov\u00e1n\u00ed je celkem v\u011bda). Pak jsem m\u011bl podez\u0159en\u00ed, \u017ee chyba je na stran\u011b odes\u00edlatele SOAP dat. Pomoc\u00ed jejich testovac\u00ed str\u00e1nky jsem se ujistil, \u017ee probl\u00e9m je asi na stran\u011b m\u00e9ho SOAP klienta, tedy NuSOAP. Za\u010dal jsem si hr\u00e1t s\u00a0jinou SOAP knihovnou, tentokr\u00e1t p\u0159\u00edmo z\u00a0PEAR. Jednalo se o\u00a0betaverzi a dokumentace se od k\u00f3du knihovny dost zna\u010dn\u011b li\u0161ila, tak\u017ee jsem tuto cestu rad\u011bji vzdal. A\u00a0jako posledn\u00ed p\u0159i\u0161la na \u0159adu kotrola k\u00f3du NuSOAP \u0159\u00e1dek po \u0159\u00e1dku (jak jsem psal v\u00a0sobotu\u00a0\u2013 230kB, 6500\u00a0\u0159\u00e1dk\u016f) a v\u00fdsledek se dostavil.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Knihovna NuSOAP, o\u00a0kter\u00e9 jsem psal v\u00a0sobotu (viz SOAP a PHP) d\u011bl\u00e1 super v\u011bc\u00a0\u2013 n\u011bkde uvnit\u0159 v\u0161echno co je UTF-8\u00a0p\u0159evede nejd\u0159\u00edve na ISO-8859\u20131 a pak zase zp\u00e1tky na UTF-8.\u00a0Opravdu nev\u00edm pro\u010d to d\u011bl\u00e1, ale pou\u017e\u00edv\u00e1 na to funkci utf8\u00a0encode() a utf8\u00a0encode(). Kontroln\u00ed ot\u00e1zka\u00a0\u2013 co se asi stane s\u00a0\u010desk\u00fdm textem v\u00a0UTF-8\u00a0p\u0159eveden\u00fdm do ISO-8859\u20131 a zp\u011bt do\u00a0UTF-8? P\u0159ed: &hellip; <a href=\"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2\" class=\"more-link\">Pokra\u010dovat ve \u010dten\u00ed<span class=\"screen-reader-text\"> &#8222;SOAP a PHP (2)&#8220;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-235","post","type-post","status-publish","format-standard","hentry","category-nezarazene"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SOAP a PHP (2) &#8211; Prochaine Bloguje<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2\" \/>\n<meta property=\"og:locale\" content=\"cs_CZ\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SOAP a PHP (2) &#8211; Prochaine Bloguje\" \/>\n<meta property=\"og:description\" content=\"Knihovna NuSOAP, o\u00a0kter\u00e9 jsem psal v\u00a0sobotu (viz SOAP a PHP) d\u011bl\u00e1 super v\u011bc\u00a0\u2013 n\u011bkde uvnit\u0159 v\u0161echno co je UTF-8\u00a0p\u0159evede nejd\u0159\u00edve na ISO-8859\u20131 a pak zase zp\u00e1tky na UTF-8.\u00a0Opravdu nev\u00edm pro\u010d to d\u011bl\u00e1, ale pou\u017e\u00edv\u00e1 na to funkci utf8\u00a0encode() a utf8\u00a0encode(). Kontroln\u00ed ot\u00e1zka\u00a0\u2013 co se asi stane s\u00a0\u010desk\u00fdm textem v\u00a0UTF-8\u00a0p\u0159eveden\u00fdm do ISO-8859\u20131 a zp\u011bt do\u00a0UTF-8? P\u0159ed: &hellip; Pokra\u010dovat ve \u010dten\u00ed &quot;SOAP a PHP (2)&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2\" \/>\n<meta property=\"og:site_name\" content=\"Prochaine Bloguje\" \/>\n<meta property=\"article:published_time\" content=\"2005-04-20T20:37:48+00:00\" \/>\n<meta name=\"author\" content=\"Prochaine\" \/>\n<meta name=\"twitter:label1\" content=\"Napsal(a)\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prochaine\" \/>\n\t<meta name=\"twitter:label2\" content=\"Odhadovan\u00e1 doba \u010dten\u00ed\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minuty\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2\"},\"author\":{\"name\":\"Prochaine\",\"@id\":\"https:\/\/blog.cernosice.cz\/#\/schema\/person\/0186c2bbc40cb14e20651b8d029cf957\"},\"headline\":\"SOAP a PHP (2)\",\"datePublished\":\"2005-04-20T20:37:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2\"},\"wordCount\":348,\"commentCount\":0,\"inLanguage\":\"cs\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2\",\"url\":\"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2\",\"name\":\"SOAP a PHP (2) &#8211; Prochaine Bloguje\",\"isPartOf\":{\"@id\":\"https:\/\/blog.cernosice.cz\/#website\"},\"datePublished\":\"2005-04-20T20:37:48+00:00\",\"author\":{\"@id\":\"https:\/\/blog.cernosice.cz\/#\/schema\/person\/0186c2bbc40cb14e20651b8d029cf957\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2#breadcrumb\"},\"inLanguage\":\"cs\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Dom\u016f\",\"item\":\"https:\/\/blog.cernosice.cz\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SOAP a PHP (2)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.cernosice.cz\/#website\",\"url\":\"https:\/\/blog.cernosice.cz\/\",\"name\":\"Prochaine Bloguje\",\"description\":\"Chci podat sv\u011bdectv\u00ed.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.cernosice.cz\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"cs\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/blog.cernosice.cz\/#\/schema\/person\/0186c2bbc40cb14e20651b8d029cf957\",\"name\":\"Prochaine\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"cs\",\"@id\":\"https:\/\/blog.cernosice.cz\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/34f60ef0d2d67c05d3bc19de5fb6774883ec2100755dd5f119d2d9ab2865aee7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/34f60ef0d2d67c05d3bc19de5fb6774883ec2100755dd5f119d2d9ab2865aee7?s=96&d=mm&r=g\",\"caption\":\"Prochaine\"},\"sameAs\":[\"http:\/\/staging.cernosice.cz\/\"],\"url\":\"https:\/\/blog.cernosice.cz\/index.php\/author\/prochaine\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SOAP a PHP (2) &#8211; Prochaine Bloguje","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2","og_locale":"cs_CZ","og_type":"article","og_title":"SOAP a PHP (2) &#8211; Prochaine Bloguje","og_description":"Knihovna NuSOAP, o\u00a0kter\u00e9 jsem psal v\u00a0sobotu (viz SOAP a PHP) d\u011bl\u00e1 super v\u011bc\u00a0\u2013 n\u011bkde uvnit\u0159 v\u0161echno co je UTF-8\u00a0p\u0159evede nejd\u0159\u00edve na ISO-8859\u20131 a pak zase zp\u00e1tky na UTF-8.\u00a0Opravdu nev\u00edm pro\u010d to d\u011bl\u00e1, ale pou\u017e\u00edv\u00e1 na to funkci utf8\u00a0encode() a utf8\u00a0encode(). Kontroln\u00ed ot\u00e1zka\u00a0\u2013 co se asi stane s\u00a0\u010desk\u00fdm textem v\u00a0UTF-8\u00a0p\u0159eveden\u00fdm do ISO-8859\u20131 a zp\u011bt do\u00a0UTF-8? P\u0159ed: &hellip; Pokra\u010dovat ve \u010dten\u00ed \"SOAP a PHP (2)\"","og_url":"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2","og_site_name":"Prochaine Bloguje","article_published_time":"2005-04-20T20:37:48+00:00","author":"Prochaine","twitter_misc":{"Napsal(a)":"Prochaine","Odhadovan\u00e1 doba \u010dten\u00ed":"2 minuty"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2#article","isPartOf":{"@id":"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2"},"author":{"name":"Prochaine","@id":"https:\/\/blog.cernosice.cz\/#\/schema\/person\/0186c2bbc40cb14e20651b8d029cf957"},"headline":"SOAP a PHP (2)","datePublished":"2005-04-20T20:37:48+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2"},"wordCount":348,"commentCount":0,"inLanguage":"cs","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2","url":"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2","name":"SOAP a PHP (2) &#8211; Prochaine Bloguje","isPartOf":{"@id":"https:\/\/blog.cernosice.cz\/#website"},"datePublished":"2005-04-20T20:37:48+00:00","author":{"@id":"https:\/\/blog.cernosice.cz\/#\/schema\/person\/0186c2bbc40cb14e20651b8d029cf957"},"breadcrumb":{"@id":"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2#breadcrumb"},"inLanguage":"cs","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.cernosice.cz\/index.php\/2005-04-20-soap-a-php-2#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Dom\u016f","item":"https:\/\/blog.cernosice.cz\/"},{"@type":"ListItem","position":2,"name":"SOAP a PHP (2)"}]},{"@type":"WebSite","@id":"https:\/\/blog.cernosice.cz\/#website","url":"https:\/\/blog.cernosice.cz\/","name":"Prochaine Bloguje","description":"Chci podat sv\u011bdectv\u00ed.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.cernosice.cz\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"cs"},{"@type":"Person","@id":"https:\/\/blog.cernosice.cz\/#\/schema\/person\/0186c2bbc40cb14e20651b8d029cf957","name":"Prochaine","image":{"@type":"ImageObject","inLanguage":"cs","@id":"https:\/\/blog.cernosice.cz\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/34f60ef0d2d67c05d3bc19de5fb6774883ec2100755dd5f119d2d9ab2865aee7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/34f60ef0d2d67c05d3bc19de5fb6774883ec2100755dd5f119d2d9ab2865aee7?s=96&d=mm&r=g","caption":"Prochaine"},"sameAs":["http:\/\/staging.cernosice.cz\/"],"url":"https:\/\/blog.cernosice.cz\/index.php\/author\/prochaine"}]}},"_links":{"self":[{"href":"https:\/\/blog.cernosice.cz\/index.php\/wp-json\/wp\/v2\/posts\/235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cernosice.cz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cernosice.cz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cernosice.cz\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cernosice.cz\/index.php\/wp-json\/wp\/v2\/comments?post=235"}],"version-history":[{"count":0,"href":"https:\/\/blog.cernosice.cz\/index.php\/wp-json\/wp\/v2\/posts\/235\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.cernosice.cz\/index.php\/wp-json\/wp\/v2\/media?parent=235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cernosice.cz\/index.php\/wp-json\/wp\/v2\/categories?post=235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cernosice.cz\/index.php\/wp-json\/wp\/v2\/tags?post=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}