Date: 2015-12-17 Title: Emoji表情传输和保存:对非BMP范围的Unicode字符的处理 Category: PHP Tags: Emoji, Unicode, PHP, Lua Slug: php_emoji_to_unicode
参考:
#!/bin/bash | |
###AUTHOR### | |
#Harry Dove-Robinson 7/27/2017 | |
#[email protected] | |
#https://gist.github.com/hdoverobinson | |
#https://github.com/hdoverobinson | |
###USAGE### | |
#This is a script used for out-of-band management by way of DTMF tones over voice calls to a SIMCom cellular modem. |
// _ooOoo_ | |
// o8888888o | |
// 88" . "88 | |
// (| -_- |) | |
// O\ = /O | |
// ____/`---'\____ | |
// . ' \\| |// `. | |
// / \\||| : |||// \ | |
// / _||||| -:- |||||- \ | |
// | | \\\ - /// | | |
Date: 2015-12-17 Title: Emoji表情传输和保存:对非BMP范围的Unicode字符的处理 Category: PHP Tags: Emoji, Unicode, PHP, Lua Slug: php_emoji_to_unicode
参考:
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:@"REST URL PATH"]]; | |
NSData *imageData = UIImageJPEGRepresentation(image, 1.0); | |
[request setCachePolicy:NSURLRequestReloadIgnoringLocalCacheData]; | |
[request setHTTPShouldHandleCookies:NO]; | |
[request setTimeoutInterval:60]; | |
[request setHTTPMethod:@"POST"]; | |
NSString *boundary = @"unique-consistent-string"; |
Intent intent = new Intent(Intent.ACTION_VIEW); | |
ComponentName cn = new ComponentName("com.tencent.mm", "com.tencent.mm.plugin.base.stub.WXCustomSchemeEntryActivity"); | |
intent.setData(Uri.parse("weixin://dl/moments")); | |
intent.setFlags(Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP); | |
intent.setComponent(cn); | |
startActivity(intent); |