{"id":430,"date":"2010-12-21T18:23:40","date_gmt":"2010-12-21T18:23:40","guid":{"rendered":"https:\/\/ibex.tech\/visualcpp\/?p=430"},"modified":"2022-02-17T06:24:04","modified_gmt":"2022-02-17T06:24:04","slug":"filename-not-permitted-characters","status":"publish","type":"post","link":"https:\/\/ibex.tech\/visualcpp\/file-input-output-serialization\/filename-not-permitted-characters","title":{"rendered":"Filename Not Permitted Characters"},"content":{"rendered":"<pre><code>\r\n\/\/Remove any characters not allowed in filenames characters:-  \\ \/ | : * \" ? &lt; &gt;\r\n\tMyString = MyString-&gt;Replace(\"\\\\\", \"-\");\r\n\tMyString = MyString-&gt;Replace(\"\/\", \"-\");\r\n\tMyString = MyString-&gt;Replace(\"|\", \"-\");\r\n\tMyString = MyString-&gt;Replace(\":\", \"-\");\r\n\tMyString = MyString-&gt;Replace(\"*\", \"-\");\r\n\tMyString = MyString-&gt;Replace(\"\\\"\", \" \");\r\n\tMyString = MyString-&gt;Replace(\"?\", \" \");\r\n\tMyString = MyString-&gt;Replace(\"&lt;\", \" \");\r\n \tMyString = MyString-&gt;Replace(\"&gt;\", \" \");\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\/\/Remove any characters not allowed in filenames characters:- \\ \/ | : * &#8221; ? &lt; &gt; MyString = MyString-&gt;Replace(&#8220;\\\\&#8221;, &#8220;-&#8220;); MyString = MyString-&gt;Replace(&#8220;\/&#8221;, &#8220;-&#8220;); MyString = MyString-&gt;Replace(&#8220;|&#8221;, &#8220;-&#8220;); MyString = MyString-&gt;Replace(&#8220;:&#8221;, &#8220;-&#8220;); MyString = MyString-&gt;Replace(&#8220;*&#8221;, &#8220;-&#8220;); MyString = MyString-&gt;Replace(&#8220;\\&#8221;&#8221;, &#8221; &#8220;); MyString = MyString-&gt;Replace(&#8220;?&#8221;, &#8221; &#8220;); MyString = MyString-&gt;Replace(&#8220;&lt;&#8220;, &#8221; &#8220;); MyString = MyString-&gt;Replace(&#8220;&gt;&#8221;, [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-430","post","type-post","status-publish","format-standard","hentry","category-file-input-output-serialization"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/comments?post=430"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/430\/revisions"}],"predecessor-version":[{"id":1083,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/430\/revisions\/1083"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/media?parent=430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/categories?post=430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/tags?post=430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}