This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// REF: Source code corresponding to http://stackoverflow.com/questions/1872773/ucs2-hexencoded-characters | |
header('Content-Type: text/html; charset=UCS-2'); | |
mb_http_output('UCS-2'); | |
echo mb_convert_encoding('<html><head><meta http-equiv="Content-Type" content="text/html; charset=UCS-2" /></head><body>', 'UCS-2', 'auto'); | |
echo mb_convert_encoding('encoding: ', 'UCS-2', 'auto'); | |
echo mb_convert_encoding(mb_http_output(), 'UCS-2', 'auto'); | |
echo mb_convert_encoding('<br />', 'UCS-2', 'auto'); | |
// NOTE: Replace the string here with your phrase | |
$strTerm = '!مرحبا عالم'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// REF: Source code corresponding to http://stackoverflow.com/questions/2005358/ucs2-hexencoded-characters-to-utf8-in-php | |
function local_hex2bin($h) | |
{ | |
if (!is_string($h)) return null; | |
$r=''; | |
for ($a=0; $a<strlen($h); $a+=2) { $r.=chr(hexdec($h{$a}.$h{($a+1)})); } | |
return $r; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="javascript:(function(){var ssl=('https:'==document.location.protocol);if(ssl){return;};var e=document.createElement('script');e.src='http://www.meklarian.com/mekfavelet/picture-previews3.js';document.getElementsByTagName('head')[0].appendChild(e);})();">Previews v4</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Diagnostics; | |
namespace YourFavoriteNamespace | |
{ | |
public class AutoTimer : IDisposable | |
{ | |
public AutoTimer() | |
{ | |
_Init(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using System.Collections; | |
using System.Data; | |
using System.Web; | |
using System.Web.Services; | |
using System.Web.Services.Protocols; | |
using System.Xml; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Window x:Class="ImageLookup.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
Title="MainWindow" Height="350" Width="525"> | |
<Grid> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="Auto" /> | |
<RowDefinition Height="*" /> | |
<RowDefinition Height="Auto" /> | |
</Grid.RowDefinitions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PZIAdapter.cpp : Defines the exported functions for the DLL application. | |
// | |
#include "stdafx.h" | |
#include "PZIAdapter.h" | |
// This is an example of an exported function. | |
PZIADAPTER_API DWORD _stdcall StripFilePZI(BSTR bstrFilename) | |
{ | |
if(!bstrFilename){return E_INVALIDARG;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HelperDlg.cpp : implementation file | |
// | |
#include "stdafx.h" | |
// NOTE: CWinApp Include goes here instead of WindowBits2.h | |
#include "WindowBits2.h" | |
#include "HelperDlg.h" | |
// NOTE: Not all versions of MFC have "afxdialogex.h" this present | |
#include "afxdialogex.h" |
OlderNewer