# NKF Platform Dependencies & Mono

**URL:** <https://www.ruby-forum.com/t/nkf-platform-dependencies-mono/137871>\
**Category:** IronRuby\
**Created:** [May 17, 2008, 5:56am UTC](https://www.ruby-forum.com/t/nkf-platform-dependencies-mono/137871 "2008-05-17T05:56:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![diabolist](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c2a13f/32.png) [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Post date:** [May 17, 2008, 5:56am UTC](https://www.ruby-forum.com/t/nkf-platform-dependencies-mono/137871/1 "2008-05-17T05:56:51Z")

</div>

Hi All,

I’ve got NKF up and running and passing the (very few) standard unit  
tests  
that come with it.

I’ve got a problem however.

My implementation currently relies on the Win32 platform API  
DetectInputCodepage to perform character encoding detection (there seems  
to  
be no managed equivalent) which is likely a problem for Mono. The  
options  
seem to be:

- Conditionally compile in an alternative API under Mono.
- Implement the DetectInputCodepage functionality natively.

Advice appreciated.

Cheers,

Andrew.
