C ++)ihtmldocument2 :: put_charset不适用于Meta标签

时间:2016-08-31 02:32:50

标签: c++ mfc ihtmldocument2

我想更改mht文件的charset。所以我使用了<?php namespace App\Providers; use Illuminate\Routing\Router; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; class RouteServiceProvider extends ServiceProvider { /** * This namespace is applied to the controller routes in your routes file. * * In addition, it is set as the URL generator's root namespace. * * @var string */ protected $namespace = 'App\Http\Controllers'; /** * Define your route model bindings, pattern filters, etc. * * @param \Illuminate\Routing\Router $router * @return void */ public function boot() { // parent::boot(); Route::bind('tags', function($name) { return \App\Tag::where('name', $name)->firstOrFail(); }); Route::bind('exercise_slug', function($slug) { return \App\Exercise::where('slug', $slug)->firstOrFail(); }); Route::bind('exerciseplan_slug', function($slug) { return \App\ExercisePlan::where('slug', $slug)->firstOrFail(); }); //Route::bind('profile',function($name){ //return \App\User::whereName($name)->firstOrFail(); //}); Route::bind('article_slug', function($name) { return \App\Article::where('slug', $name)->firstOrFail(); }); Route::bind('training_request_slug', function($slug) { return \App\TrainingRequest::where('slug', $slug)->firstOrFail(); }); Route::bind('trainer_profile', function($user_id) { return \App\TrainerProfile::where('user_id',$user_id)->firstOrFail(); }); } /** * Define the routes for the application. * * @param \Illuminate\Routing\Router $router * @return void */ public function map(Router $router) { Route::group(['namespace' => $this->namespace], function ($router) { require app_path('Http/routes.php'); }); } }

如果文件没有Meta标签字符集,它确实有效。如果file有Meta标签,则put_charset不起作用。

这是我的代码。

ihtmldocument2::put_charset

0 个答案:

没有答案