<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-4479470476814748030.post8190327282844459501..comments</id><updated>2010-08-31T16:30:37.299-07:00</updated><title type='text'>Comments on Geb-blog: Marshal UTF8 Strings in .NET</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.gebhardtcomputing.com/feeds/8190327282844459501/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4479470476814748030/8190327282844459501/comments/default'/><link rel='alternate' type='text/html' href='http://blog.gebhardtcomputing.com/2007/11/marshal-utf8-strings-in-net.html'/><author><name>Tim Gebhardt</name><uri>http://www.blogger.com/profile/15025603096670054550</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4479470476814748030.post-6694813144768818531</id><published>2010-08-31T16:30:37.299-07:00</published><updated>2010-08-31T16:30:37.299-07:00</updated><title type='text'>Yep! A PAIN in the BUTT! But, thanks for your solu...</title><content type='html'>Yep! A PAIN in the BUTT! But, thanks for your solution. &amp;quot;Marshal.Copy&amp;#39; was what I had missed.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4479470476814748030/8190327282844459501/comments/default/6694813144768818531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4479470476814748030/8190327282844459501/comments/default/6694813144768818531'/><link rel='alternate' type='text/html' href='http://blog.gebhardtcomputing.com/2007/11/marshal-utf8-strings-in-net.html?showComment=1283297437299#c6694813144768818531' title=''/><author><name>Rob</name><uri>http://www.blogger.com/profile/05604438273044058640</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.gebhardtcomputing.com/2007/11/marshal-utf8-strings-in-net.html' ref='tag:blogger.com,1999:blog-4479470476814748030.post-8190327282844459501' source='http://www.blogger.com/feeds/4479470476814748030/posts/default/8190327282844459501' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2134654948'/></entry><entry><id>tag:blogger.com,1999:blog-4479470476814748030.post-7621609177158929184</id><published>2008-11-27T23:36:00.000-08:00</published><updated>2008-11-27T23:36:00.000-08:00</updated><title type='text'>Thanks for the tip. I agree with Philip that the s...</title><content type='html'>Thanks for the tip. I agree with Philip that the size shouldn&amp;#39;t be subtracted when creating the array. Also it&amp;#39;s silly to use array[0] when typeof(byte) would do just fine. I am using a modified version that can be found from:&lt;BR/&gt;&lt;BR/&gt;http://code.google.com/p/tapcfg/source/browse/trunk/src/bindings/UTF8Marshaler.cs?spec=svn69&amp;amp;r=68&lt;BR/&gt;&lt;BR/&gt;Feel free to use it how you wish. It has also a dirty hack included that made the marshaller crash when running on mono 1.2.6 on linux.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4479470476814748030/8190327282844459501/comments/default/7621609177158929184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4479470476814748030/8190327282844459501/comments/default/7621609177158929184'/><link rel='alternate' type='text/html' href='http://blog.gebhardtcomputing.com/2007/11/marshal-utf8-strings-in-net.html?showComment=1227857760000#c7621609177158929184' title=''/><author><name>Juho Vähä-Herttua</name><uri>http://www.blogger.com/profile/12841546798839283383</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.gebhardtcomputing.com/2007/11/marshal-utf8-strings-in-net.html' ref='tag:blogger.com,1999:blog-4479470476814748030.post-8190327282844459501' source='http://www.blogger.com/feeds/4479470476814748030/posts/default/8190327282844459501' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1404085602'/></entry><entry><id>tag:blogger.com,1999:blog-4479470476814748030.post-2500900712030089101</id><published>2008-01-10T15:22:00.000-08:00</published><updated>2008-01-10T15:22:00.000-08:00</updated><title type='text'>This was quite helpful to me.  Thanks!&lt;br&gt;&lt;br&gt;Ther...</title><content type='html'>This was quite helpful to me.  Thanks!&lt;BR/&gt;&lt;BR/&gt;There's a small bug in your MarshalNativeToManaged function.  I don't think the size should have 1 subtracted from it when creating the array.&lt;BR/&gt;&lt;BR/&gt;Also, MarshalManagedToNative does not account for the empty string correctly.&lt;BR/&gt;&lt;BR/&gt;Thanks again for this work!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4479470476814748030/8190327282844459501/comments/default/2500900712030089101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4479470476814748030/8190327282844459501/comments/default/2500900712030089101'/><link rel='alternate' type='text/html' href='http://blog.gebhardtcomputing.com/2007/11/marshal-utf8-strings-in-net.html?showComment=1200007320000#c2500900712030089101' title=''/><author><name>Philip</name><uri>http://www.blogger.com/profile/09226613295253929275</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.gebhardtcomputing.com/2007/11/marshal-utf8-strings-in-net.html' ref='tag:blogger.com,1999:blog-4479470476814748030.post-8190327282844459501' source='http://www.blogger.com/feeds/4479470476814748030/posts/default/8190327282844459501' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-351764323'/></entry></feed>
