Source/WebKit/efl/ewk/ewk_view.cpp
const char* ewk_view_setting_encoding_custom_get(const Evas_Object* o)
{
    EWK_VIEW_SD_GET_OR_RETURN(o, sd, 0);
    EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, 0);
    Evas_Object* main_frame = ewk_view_frame_main_get(o);
    WebCore::Frame* core_frame = ewk_frame_core_get(main_frame);

    String overrideEncoding = core_frame->loader()->documentLoader()->overrideEncoding();

    if (overrideEncoding.isEmpty())
        return 0;

    eina_stringshare_replace(&priv->settings.encoding_custom, overrideEncoding.utf8().data());
    return priv->settings.encoding_custom;
}
/**
 * Get current encoding of this View.
 *
 * @param o View.
 *
 * @return A pointer to an eina_strinshare containing the current custom
 * encoding for View object @param o, or @c 0 if it's not set.
 */
Get current encoding of this View.
@param o View.

@return A pointer to an eina_strinshare containing the current custom
encoding for View object @param o, or @c 0 if it's not set.
Get current encoding of this View . @param o View . @return A pointer to an eina_strinshare containing the current custom encoding for View object @param o or @c 0 if it ' s not set .
const char* ewk_view_setting_encoding_custom_get(const Evas_Object* o)
{
    EWK_VIEW_SD_GET_OR_RETURN(o, sd, 0);
    EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, 0);
    Evas_Object* main_frame = ewk_view_frame_main_get(o);
    WebCore::Frame* core_frame = ewk_frame_core_get(main_frame);
    String overrideEncoding = core_frame->loader()->documentLoader()->overrideEncoding();
    if (overrideEncoding.isEmpty())
        return 0;
    eina_stringshare_replace(&priv->settings.encoding_custom, overrideEncoding.utf8().data());
    return priv->settings.encoding_custom;
}
const char * ewk_view_setting_encoding_custom_get ( const Evas_Object * o ) { EWK_VIEW_SD_GET_OR_RETURN ( o , sd , 0 ) ; EWK_VIEW_PRIV_GET_OR_RETURN ( sd , priv , 0 ) ; Evas_Object * main_frame = ewk_view_frame_main_get ( o ) ; WebCore :: Frame * core_frame = ewk_frame_core_get ( main_frame ) ; String overrideEncoding = core_frame -> loader ( ) -> documentLoader ( ) -> overrideEncoding ( ) ; if ( overrideEncoding . isEmpty ( ) ) return 0 ; eina_stringshare_replace ( & priv -> settings . encoding_custom , overrideEncoding . utf8 ( ) . data ( ) ) ; return priv -> settings . encoding_custom ; }
Get current encoding of this View.
Get current encoding of this View .